VBA to change show ribbon to tabs only

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,210
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

I know in VBA you can make the sheet full screen, but this hides all the save options,
I'd like to be able to make the Ribbon hide,

If i go to the far right of the sheet the ribbon bar has a dropdown that give you the folllowing options
Shown Ribbon
Full-screen Mode
Show tabs Only
always show ribbon

I'd like a macro that could choose the "Show tabs only" option?

Or to put it another way I'd like to hide all the controls except the quick access tools and the row that says "File, Home, insert,Draw Etc."

anyone know how i could do this?
thanks
Tony
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try

VBA Code:
Sub Test()

CommandBars.ExecuteMso "MinimizeRibbon"

End Sub

The function will toggle. Each time you run it, the ribbon will be shown or hide.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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