Consulting

Results 1 to 2 of 2

Thread: Solved: ShowHideMinimize Ribbon using VBA

  1. #1

    Solved: ShowHideMinimize Ribbon using VBA

    Hello!,

    Is there a way using VBA to minimize the Ribbon in Excel 2007 and
    disable maximize for a specific worksheet.

    I find a way to hide the ribbon completely using eexecute excel4macro
    but it hides even the munu.

    thanks,

  2. #2
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Try this to show & hide the ribbon:
    [VBA]

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

    [/VBA]
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •