LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Toolbars not appearing

Hi everyone,

In my Excel app (XL2002), I hide all the toolbars and restore them on a
close or deactivate event. Here's my code to restore them.

' Restores all of the hidden toolbars
Sub RestoreAllToolBars()
Dim vToolbars As Variant, iIndex As Integer
vToolbars = GetAllSettings(APP_NAME, TOOLBAR_SECTION)

Application.ScreenUpdating = False

For iIndex = LBound(vToolbars) To UBound(vToolbars)
If vToolbars(iIndex, 1) Then
With Application.CommandBars(vToolbars(iIndex, 0))
.Visible = True
.Protection = msoBarNoProtection
End With
End If
Next iIndex

Application.ScreenUpdating = True
End Sub

When I close my Excel app, the code restores the toolbars (if another
workbook is open), but they don't appear right away. Surprisingly
enough, if I have another workbook open, when I right-click on the area
in the other workbook where they should be, they are shown as checked
off, meaning they were restored, but are not visible. Only when I
minimize and maximize that other workbook do they reappear. What is
going on here?

Thanks in advance,

- Bill

 
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 not appearing as selected MacLeod Excel Discussion (Misc queries) 1 December 5th 07 05:08 PM
How do I control the order of Custom Toolbars appearing in the Add-Ins Tab of Excel 2007 Jeffrey W. Smith Excel Discussion (Misc queries) 1 October 26th 07 01:52 AM
#Value! Keeps appearing RFTKaiser Excel Worksheet Functions 5 October 6th 07 01:37 AM
Please Help, No Toolbars in my view-toolbars! [email protected] Excel Programming 2 February 19th 05 09:15 PM
toolbars keep appearing on opening excel after I removed them bef. toolbar hater Excel Discussion (Misc queries) 1 December 2nd 04 01:48 AM


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