Module: Ribbons in Category Microsoft Access : Environment from Total Visual SourceBook

Manage the Access Ribbons to show, hide, minimize, maximize, and toggle it with Access VBA.

Procedure Name Type Description
(Declarations) Declarations Declarations and private variables for the modRibbons module.
HideRibbon Procedure Hide the ribbon.
ShowRibbon Procedure Show the ribbon.
IsRibbonMaximized Procedure Is the ribbon in maximized mode?
MaximizeRibbon Procedure Maximize the ribbon so you can see all the options.
MinimizeRibbon Procedure Minimize the ribbon so you have more vertical workspace.
ToggleRibbon Procedure Toggle between the minimized and maximized displays of the ribbon.
' Example of modRibbons
'
' To try this example, do the following:
' 1. Create a new form
' 2. Add the following command buttons to the form:
'       cmdMax
'       cmdMin
'       cmdToggle
'       cmdIsMax
'       cmdHide
'       cmdShow
' 3. Paste this code into the form's module

Private Sub cmdHide_Click()
  HideRibbon
End Sub

Private Sub cmdIsMax_Click()
  MsgBox "Maximized Status: " & IsRibbonMaximized()
End Sub

Private Sub cmdMin_Click()
  MinimizeRibbon
End Sub

Private Sub cmdMax_Click()
  MaximizeRibbon
End Sub

Private Sub cmdShow_Click()
  ShowRibbon
End Sub

Private Sub cmdToggle_Click()
  ToggleRibbon
End Sub

Private Sub Form_Load()
  Me.cmdHide.Caption = "Hide Ribbon"
  Me.cmdIsMax.Caption = "Is Ribbon Max"
  Me.cmdMax.Caption = "Maximize Ribbon"
  Me.cmdMin.Caption = "Minimize Ribbon"
  Me.cmdShow.Caption = "Show Ribbon"
  Me.cmdToggle.Caption = "Toggle Ribbon"
End Sub

Total Visual SourceBook The source code in Total Visual Sourcebook includes modules and classes for Microsoft Access, Visual Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily add this professionally written, tested, and documented royalty-free code into your applications to simplify your application development efforts.

Total Visual SourceBook is written for the needs of a developer using a source code library covering the many challenges you face. Countless developers over the years have told us they learned some or much of their development skills and tricks from our code. You can too!

Additional Resources

Total Visual SourceBook CD and Printed Manual

Microsoft Access/ Office 2016, 2013, 2010, and 2007 Version
is Shipping!

New features in Total Visual SourceBook for Access, Office and VB6

Supports Access/Office 2016, 2013, 2010 and 2007, and Visual Basic 6.0!


View all FMS products for Microsoft Access All Our Microsoft Access Products

Reviews

Reader Choice Award for MS Access Source Code Library
Reader Choice

"The code is exactly how I would like to write code and the algorithms used are very efficient and well-documented."

Van T. Dinh, Microsoft MVP

SourceBook Info

Additional Info

Question

 

 

Free Product Catalog from FMS