Minimize the ribbon in Excel 2007 using code

  • Thread starter Thread starter Maths1
  • Start date Start date
M

Maths1

I would like to be able to minimize the ribbon using vba in Excel 2007 and
then return the ribbon before closing the application. Any help would be
appreciated. Thank you!
 
Hi Maths1

One option is this (only VBA)

Sub HideRibbon()
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"
End Sub


Sub ShowRibbon()
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",True)"
End Sub

Another good option is to do it with RibbonX
If you want that post back
 

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

Back
Top