Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Run macro if user goes to a specific worksheet
I have a workbook with several worksheets. There is on worksheet that I want
to run a macro on if the user of the worksheet goes to it. Any ideas? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Run macro if user goes to a specific worksheet
Place the below as the first line of the macro.
If Environ("Username") < "username" Then Exit Sub If this post helps click Yes --------------- Jacob Skaria "Danielle" wrote: I have a workbook with several worksheets. There is on worksheet that I want to run a macro on if the user of the worksheet goes to it. Any ideas? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Run macro if user goes to a specific worksheet
Oops....Use the Worksheet_Activate event...Right click sheet tabView code and
Private Sub Worksheet_Activate() End Sub If this post helps click Yes --------------- Jacob Skaria "Jacob Skaria" wrote: Place the below as the first line of the macro. If Environ("Username") < "username" Then Exit Sub If this post helps click Yes --------------- Jacob Skaria "Danielle" wrote: I have a workbook with several worksheets. There is on worksheet that I want to run a macro on if the user of the worksheet goes to it. Any ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I get a macro to be non worksheet specific? | Excel Worksheet Functions | |||
How to run specific macro on selected worksheet? | Excel Discussion (Misc queries) | |||
User Specific excel problem when opening a excel worksheet | Setting up and Configuration of Excel | |||
Changing a macro from a specific worksheet to any worksheet | Excel Programming | |||
make a macro 'worksheet specific' | Excel Discussion (Misc queries) |