Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Brad
That did it! Many thanks Regards Colin In article , Brad <anonymous@dis cussions.microsoft.com writes Use the "SheetActivate" event of the Workbook object. Private Sub Workbook_SheetActivate(ByVal Sh As Object) If Sh.Name = "Sheet2" Then MsgBox "You selected Sheet2." End If End Sub HTH. -----Original Message----- Hi there I need a macro to run, but only when a certain 'WorkSheet' is selected from within a Workbook containing many worksheets. Can anyone help me with this? -- Colin G Eastwood . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select dynamic data in 2 columns, and repeat macro to next sheet | Excel Discussion (Misc queries) | |||
Macro to select cells without a certain value and select a menu it | Excel Worksheet Functions | |||
Macro to go to select sheet | Excel Discussion (Misc queries) | |||
macro sheet select | Excel Discussion (Misc queries) | |||
Macro, select Sheet "Number", NOT Sheet Name | Excel Worksheet Functions |