Custum toolbar for printing?

sasolini

Registered User.
Local time
Today, 20:42
Joined
Dec 27, 2004
Messages
61
Hey,

I use a code to hide my toolbars and database window and desable Right Mouse Click. The code I use is:

Code:
[COLOR=DarkGreen]'Hide Toolbars[/COLOR]
Dim i As Integer
For i = 1 To CommandBars.Count
    CommandBars(i).Enabled = False
Next i

[COLOR=DarkGreen]'hide Database Window[/COLOR]
DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide

Now i try to show my custum toolbar with code:

Code:
DoCmd.ShowToolbar "HLP1", acToolbarYes

But I still dont see the toolbar? Do I have to do anythink else to show it? I need that custum toolbar for printig my reports. So pls help me out with this.

Thx
 
The problem is you've disabled your custom toolbar, you can't show it until you re-enable it.

Something like this...

Me.Application.CommandBars("HLP1").Enabled = True
Set myBar = Me.Application.CommandBars("HLP1")
myBar.Visible = True
 

Users who are viewing this thread

Back
Top Bottom