![]() |
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. |
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. |
All times are GMT +1. The time now is 05:27 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com