Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Activate Non-Active Workbook from Code 1

Status
Not open for further replies.

tbl

Technical User
May 15, 2001
175
BE
I am looking for a way to activate a particular worksheet from a timer function. The problem I have is that I do not want to use the workbook name in my code (unprofessional). I know that I can use ActiveWorkbook.Name to identify my book, which works fine if that book is active at the time, but when using a timer, any book could be active if the user has changed to another workbook.
 
do you want to activate the workbook that holds the code ??

If so, just use THISworkbook rather than ACTIVEworkbook

Rgds, Geoff

Three things are certain. Death, taxes and lost data. DPlank is to blame

Please read FAQ222-2244 before you ask a question
 
Thanks Geoff, have a star on me !

Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top