Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Command bar Defaults

I've used this code to hide toolbars and command bars
Sub hide(
Dim bar As CommandBa
For Each bar In Application.CommandBar
bar.Enabled = Fals
Nex
End Su

Sub show(
Dim bar As CommandBa
For Each bar In Application.CommandBar
bar.Enabled = Tru
Nex
End Su

Problem is when I restart excel now it defaults to the hidden status

Thanks for any ideas.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Command bar Defaults

You could put the show macro into the workbook open event of Personal.xls,
this will then re-display it.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Lawlera" wrote in message
...
I've used this code to hide toolbars and command bars:
Sub hide()
Dim bar As CommandBar
For Each bar In Application.CommandBars
bar.Enabled = False
Next
End Sub

Sub show()
Dim bar As CommandBar
For Each bar In Application.CommandBars
bar.Enabled = True
Next
End Sub

Problem is when I restart excel now it defaults to the hidden status.

Thanks for any ideas.



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
One command in one cell initiating another command in another cel. Chas52 Excel Worksheet Functions 3 November 7th 09 06:57 PM
command code ( GOTO command) in formula calan New Users to Excel 1 June 11th 09 09:44 AM
charting defaults rickhoff Charts and Charting in Excel 2 January 26th 08 09:57 PM
Pivot Table Error Message - "Command Text not set for command obje Jeff Divian Excel Discussion (Misc queries) 0 November 7th 07 10:26 PM
Set Defaults Erika Charts and Charting in Excel 0 October 4th 05 07:49 PM


All times are GMT +1. The time now is 07:25 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"