K
Kevin
I want to temporarily delete ALL command bars in one
instance of Excel without effecting the permanent layout
of the excel command bars. I cannot get the following
code to work but I can get other variations of to work
using the .visible property and I cannot do anything to
the "Worksheet Menu Bar" without causing errors.
Manipulating the .visible property affects the permanent
layout of Excel in new instances created. Can anyone
offer an alternative to what I'm trying to do? Your help
is appreciated.
-Kevin
(sample code below)
'Temporarily delete any existing toolbar
For Each cb In CommandBars
cb.Delete(True)
Next cb
'create the new Toolbar
Dim cbPGD As CommandBar
Set cbPGD = CommandBars.Add("PGD", msoBarTop, , True)
With cbPGD
.Enabled = False
.Visible = False
End With
instance of Excel without effecting the permanent layout
of the excel command bars. I cannot get the following
code to work but I can get other variations of to work
using the .visible property and I cannot do anything to
the "Worksheet Menu Bar" without causing errors.
Manipulating the .visible property affects the permanent
layout of Excel in new instances created. Can anyone
offer an alternative to what I'm trying to do? Your help
is appreciated.
-Kevin
(sample code below)
'Temporarily delete any existing toolbar
For Each cb In CommandBars
cb.Delete(True)
Next cb
'create the new Toolbar
Dim cbPGD As CommandBar
Set cbPGD = CommandBars.Add("PGD", msoBarTop, , True)
With cbPGD
.Enabled = False
.Visible = False
End With