Toggling toolbar visibility

  • Thread starter Geert Vancompernolle
  • Start date
G

Geert Vancompernolle

Hi,

Is there a possibility to toggle the appearance of all the toolbars to
switch them on/off?

Reason of asking: when printing out the 'current view', it's always
interesting to have as much as possible screen area available, so that your
current view can be made as big as possible, not limited by the (sometimes
big) amount of toolbars residing on the screen.

Simply being able to remove and restore them would be a nice feature.

-- Geert
 
H

Hin

In VBA:

' Hide toolbar and menus
Application.ShowToolbar = False
' Hide status bar
Application.ShowStatusBar = False

or

' toggle full screen mode
Application.DoCmd visCmdFullScreenMode
 
G

Geert Vancompernolle

Hin said:
In VBA:

' Hide toolbar and menus
Application.ShowToolbar = False
' Hide status bar
Application.ShowStatusBar = False

or

' toggle full screen mode
Application.DoCmd visCmdFullScreenMode

Hin,

Thanks for this useful information.
Allow me to ask one more question: I'm new in the VBA world and I would
like to know how to connect such scripts to buttons on the toolbars.
Could you explain me?
Or could you give me links to websites explaining this?

Thanks in advance,

-- Geert
 
H

Hin

You can make use of the AddOnName property of the MenuItem/ToolbarItem.
Setting a value of moduleName.procName(arguments) will "connect" the menu
item or toolbar button to the VBA procedure.

For details, u may take a look at the AddOnName property in developer
reference.
 

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

Top