LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
Wei Wei is offline
external usenet poster
 
Posts: 8
Default How to hide toolbar automatically when I switch to other works

NickHK,
Thanks so much for your help! I tried this command before but in the
wrong way and wrong place (module)
.....
Worksheet("Sheet Name")_Activate
Toolbars("toolbar name").Visible=True
.....

.....
Worksheet("Sheet Name")_Deactivate
Toolbars("toolbar name").Visible=False
.....

Now I know I have to put the code in the specific sheet and

.....
Worksheet_Activate
Toolbars("toolbar name").Visible=True
.....

.....
Worksheet_Deactivate
Toolbars("toolbar name").Visible=False
.....
Thanks again!
Wei

"NickHK" wrote:

Use the Worksheet_Activate and Worksheet_Deactivate events.

NickHK

"Wei" wrote in message
...
I have five worksheets in one workbook. I try to make a bar just for the

one
worksheet (name is class) and is only visible when the "class" worksheet

is
active. Please help me!




 
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
new unwanted toolbar i can't switch off Neilvass Excel Discussion (Misc queries) 2 November 11th 08 03:36 PM
How to print worksheet and automatically hide zero value rows? Eric Excel Discussion (Misc queries) 3 January 26th 08 01:02 AM
How to hide toolbar automatically when I switch to other worksheet Wei Excel Discussion (Misc queries) 4 July 1st 07 10:28 PM
VBA toolbar-button programming switch on/off Snoopy[_2_] Excel Programming 2 April 5th 06 09:22 AM
How do I automatically hide columns in a worksheet based on a cell value? dkhedkar Excel Worksheet Functions 1 March 5th 05 12:20 AM


All times are GMT +1. The time now is 05:49 AM.

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"