I want to minimize the ribbon in Excel 2013 with VBA. I do not want to toggle the ribbon, and I do not want to hide everything including "File", "Insert", etc. I have tried several different methods, but none satisfy what I want.
This hides everything:
Application.ExecuteExcel4Macro "Show.ToolBar(""Ribbon"",False)
This toggles:
CommandBars.ExecuteMso "MinimizeRibbon"
This also toggles:
SendKeys "^{F1}"
How can I simply force my ribbon to be minimized?
Not sure when you are trying to call this but this will work to minimize the ribbon if its open
Open Ribbon minimum size seems to be 150 so this will only toggle if it's open
If you want this to be hidden completely as soon as the workbook is opened then add this to the workbook code:
Measure Ribbon height, toggle it, measure again and if taller, re-toggle. Best also to set Application.Screenupdating = false.
And I do hate it when folk question why you want to do what you want. I have a Dictator App and need 100% control over the interaction with Excel.