Toolbars

Devilfish2006k

Board Regular
Joined
Jun 7, 2006
Messages
80
Is it possible with or without VBA to open a workbook and all the tool bars are not shown (except for the File, Menu etc toolbar) along with all the column and row headers?

Is it possible to do this for 1 workbook but then when you open a second one, you get the usual toolbars.

Many thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi,

Add this to your Workbook.Open event:

Code:
Private Sub Workbook_Open()
    On Error Resume Next
        With Application
           .DisplayFullScreen = True
           .CommandBars("Standard").Enabled = False
        End With
    On Error GoTo 0
End Sub

Use this to add them again:

Code:
    On Error Resume Next
        With Application
           .DisplayFullScreen = False
           .CommandBars("Standard").Enabled = True
        End With
    On Error GoTo 0
 
Upvote 0
thanks for that.

Can this be isolated to one workbook? If I open another one it also hides the tool bars. I can undo it manually but is there a way to hide it all just for the one workbook?

thanks
 
Upvote 0
Put The Second Part of The Code offered in a "before close event" in the same Workbook as the first piece of code, which is in the "Open Event", then this should work in isolation.

Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
    On Error Resume Next
           With Application
             .DisplayFullScreen = False
            .CommandBars("Standard").Enabled = True
         End With
        On Error GoTo 0
 
End Sub

regards

Kev
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,581
Messages
6,179,668
Members
452,936
Latest member
anamikabhargaw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top