View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default 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?