Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Switching to a tab in the worksheet


Hi I am using Excel 2002, which there are 5 tabs (worksheets) in it and I
want to place a code when the user switches to the first tab (worksheet).
How do I do that? I just want to place a simply code to do a cell reference
automaticlly when the first tab (worksheet) is pressed.. Any tips will be
appreicated. Thank you in advance.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Switching to a tab in the worksheet

In the code behind the first worksheet use a Worksheet_Activate event.
replace the MsgBox with whatever you wish to do on the worksheet now it is
activated....

Private Sub Worksheet_Activate()
MsgBox "I'm Here!"
End Sub

--
Cheers
Nigel



"Alex Martinez" wrote in message
...

Hi I am using Excel 2002, which there are 5 tabs (worksheets) in it and I
want to place a code when the user switches to the first tab (worksheet).
How do I do that? I just want to place a simply code to do a cell

reference
automaticlly when the first tab (worksheet) is pressed.. Any tips will be
appreicated. Thank you in advance.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching X and Y axis BW Charts and Charting in Excel 3 May 13th 08 05:56 PM
switching the worksheet? Eddie Excel Discussion (Misc queries) 1 April 24th 06 06:09 AM
Not switching to next worksheet G Setting up and Configuration of Excel 2 November 23rd 05 03:33 PM
selecting cell range in other worksheet without switching to worksheet suzetter[_4_] Excel Programming 4 June 22nd 05 08:55 PM
Prevent Users from switching worksheet Elie[_2_] Excel Programming 5 November 26th 03 11:54 AM


All times are GMT +1. The time now is 11:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"