"Web" Command Bar always appears on start up

C

ch

Hi all,

I have created a icon on my <Standard> command bar, when I clik, it link to
another spread sheet which will open up.

This works fine, except that each time the linked spread sheet opens up, it
also turns on the "Web" Command bar, and I have to clik the "x" on the
command bar to hide it.

How can I prevent this?

I have tried adding these following lines to the Microsoft Excel Objects >
ThisWorkbook but it doesn't work.

Private Sub Workbook_Open()
Application.CommandBars("Web").Visible = False
End Sub
 
D

Dave Peterson

How about trying .enabled instead of .visible?
Hi all,

I have created a icon on my <Standard> command bar, when I clik, it link to
another spread sheet which will open up.

This works fine, except that each time the linked spread sheet opens up, it
also turns on the "Web" Command bar, and I have to clik the "x" on the
command bar to hide it.

How can I prevent this?

I have tried adding these following lines to the Microsoft Excel Objects >
ThisWorkbook but it doesn't work.

Private Sub Workbook_Open()
Application.CommandBars("Web").Visible = False
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Enable Command Bar 3
hide menu bar 1
Command Bar Creation 2
Command Bar Woes 2
Command Bar 0
Help with Custom Tool Bar 1
Use VBA to change &File Control in Worksheet Menu Bar 0
Command Bar show/hide/delete 0

Top