View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Elias Elias is offline
external usenet poster
 
Posts: 3
Default determine what sheet user is viewing

This is probably very simple.

How can I make VBA know what sheet the user is viewing at the time they
activate a macro?

For instance, if they are looking at sheet 17, I want the macro's dialog box
to customize itself to limit its choices to those relevant to sheet 17. I
can do the customization, but don't know the 'if worksheet 17 is active
then...' command.

Thanks.