cgcamal
Active Member
- Joined
- May 2, 2007
- Messages
- 472
Hi to all,
I have 30 useform buttons in a sheet (main sheet) and I have 30 sheets more. There is a button for each sheet name, so the caption of each button is the same of the sheet name. E.g:
--------------------------------------------------------------------
Main Sheet name=Main
Sheet1 name= S1 and the caption of button1=Store 1
Sheet2 name= S2 and the caption of button2=Store 2
.
.
.
Sheet30 name= S30 and the caption of button30=Store 30
--------------------------------------------------------------------
When button "Store X" is clicked I want to show (select) respective sheet Sheets("SX").
How can I get the caption of any button clicked to know which sheet the user want to be displayed? Is there an event for this?
Thanks in advance.
Regards.
I have 30 useform buttons in a sheet (main sheet) and I have 30 sheets more. There is a button for each sheet name, so the caption of each button is the same of the sheet name. E.g:
--------------------------------------------------------------------
Main Sheet name=Main
Sheet1 name= S1 and the caption of button1=Store 1
Sheet2 name= S2 and the caption of button2=Store 2
.
.
.
Sheet30 name= S30 and the caption of button30=Store 30
--------------------------------------------------------------------
When button "Store X" is clicked I want to show (select) respective sheet Sheets("SX").
How can I get the caption of any button clicked to know which sheet the user want to be displayed? Is there an event for this?
Thanks in advance.
Regards.