#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default toolbars

Hi, just to add to what Ron and bob offered, this code hides just about
everything+ACE-


Dim bar As CommandBar
For Each bar In Application.CommandBars
bar.Enabled +AD0- False
Next
With Application
.DisplayFormulaBar +AD0- False
.DisplayStatusBar +AD0- False
End With
With ActiveWindow
.DisplayHeadings +AD0- False
.DisplayWorkbookTabs +AD0- False
.DisplayHorizontalScrollbar +AD0- False
.DisplayVerticalScrollbar +AD0- False
End with

'this box just gives you a break to see your handiwork
MsgBox +ACI-No Bars, now get them back+ACI-
'the next bit reverses everything

For Each bar In Application.CommandBars
bar.Enabled +AD0- True
Next
With Application
.DisplayFormulaBar +AD0- True
.DisplayStatusBar +AD0- True
End With
With ActiveWindow
.DisplayHeadings +AD0- True
.DisplayWorkbookTabs +AD0- True
.DisplayHorizontalScrollbar +AD0- True
.DisplayVerticalScrollbar +AD0- True
End with

Cheers

Joe90

+ACI-devnext+ACI- +ADw-anonymous+AEA-discussions.microsoft.com+AD4- wrote in message
news:0c2601c39d54+ACQ-943f3590+ACQ-a401280a+AEA-phx.gbl...
hi,

how can i delete all toolbars and menus from my workbooks
when i start a certain excel application?

the objective is to the end user work only with the
controls that i've created.

thanks,

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
toolbars Pym New Users to Excel 5 November 18th 08 01:03 PM
toolbars mjw232 Excel Discussion (Misc queries) 4 April 19th 06 03:51 PM
Toolbars rob Excel Discussion (Misc queries) 2 April 10th 06 07:30 PM
toolbars markg Excel Discussion (Misc queries) 1 March 14th 05 05:49 PM
toolbars George Setting up and Configuration of Excel 2 February 8th 05 04:27 AM


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