Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I have written a group of worksheet macros (things like Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)). I would like these macros to apply to all sheets in the workbook, including ones that are addded later. How do I do this? Thanks, Andrew |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Bob
There is a Change event for example in each worksheet module but if you go to the thisworkbook module there is a event called Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) End Sub This will run on very change in all worksheets -- Regards Ron de Bruin http://www.rondebruin.nl "Bob" wrote in message oups.com... Hi, I have written a group of worksheet macros (things like Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)). I would like these macros to apply to all sheets in the workbook, including ones that are addded later. How do I do this? Thanks, Andrew |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Strip workbook of macros, VBA, MS Query, etc. | Excel Discussion (Misc queries) | |||
Opening Protected EXCEL worksheets to update linked data | Excel Discussion (Misc queries) | |||
Opening Protected EXCEL worksheets to update linked data | Setting up and Configuration of Excel | |||
Opening Protected EXCEL worksheets to update linked data | New Users to Excel | |||
Protecting a worksheet / workbook with macros | Excel Discussion (Misc queries) |