View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
british.assassi[_2_] british.assassi[_2_] is offline
external usenet poster
 
Posts: 1
Default Hiding command bar


Hi

Currently I am using the following code to hide command bars and
everything else and it works fine, until someone tries to restore down
or minimize excel, then the toolbars re-appear again. Is there anyway
to stop this from happening?


Code:
--------------------
On Error Resume Next
With Application
.DisplayFullScreen = True
.CommandBars("Full Screen").Enabled = False
.CommandBars("Worksheet Menu Bar").Enabled = False
.CommandBars("Cell").Enabled = False
.DisplayFormulaBar = False
.DisplayStatusBar = False
End With
With ActiveWindow
.DisplayGridlines = False
.DisplayHeadings = False
.DisplayHorizontalScrollBar = False
.DisplayVerticalScrollBar = False
.DisplayWorkbookTabs = False
End With
On Error GoTo 0
--------------------


TIA

british.assassin


--
british.assassi
------------------------------------------------------------------------
british.assassi's Profile: http://www.excelforum.com/member.php...o&userid=28884
View this thread: http://www.excelforum.com/showthread...hreadid=486387