Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I'm trying to run some code when a worksheet is activiated (when the user views it via the tabs). I tried using this code and adding to the worksheet I wanted via the VBA editor: Private Sub Worksheet_Activate() 'do stuff msgbox("TEST") End Sub Nothing happens when the worksheet is activated. What am I doing wrong? many thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Matthew,
That code works on me, please try type the code below in the immediat window and press Enter key. Application.EnableEvents may has been set as False. Code ------------------- Application.EnableEvents=True ------------------- -- Message posted from http://www.ExcelForum.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You did put it in "Sub auto_open()", right?
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to activate the scrolling within the worksheet? | Excel Discussion (Misc queries) | |||
activate macro | Excel Discussion (Misc queries) | |||
Calling a macro from Worksheet--Activate | Excel Discussion (Misc queries) | |||
Worksheet- activate macro | Excel Discussion (Misc queries) | |||
Worksheet.activate | Excel Discussion (Misc queries) |