how to cause toolbars to be disable in a form

C

Chris Peel

Sorry, I'm rather new to forms development - I have done some VBA in Access
and Excel.

I'm trying to create a form that when loaded will disable the standard
toolbar and hide the standard menu's.

I have figured out the code aspect a little (script editor) but I'm a
little lost with out the object browser to determine how on teh Item_Open
event I can force both the standard, formatting and menu bars to be
'disabled' and non visible.

Thanks

(e-mail address removed)
 
K

Ken Slovak - [MVP - Outlook]

In general the best way I've found to develop forms code is in the Outlook
VBA window. After testing you just comment out your As clauses, define any
Outlook constants used and replace your getting the item with the form's
intrinsic Item object and your code is good to go. That gives you the Object
Browser, Intellisense and the far better editor and debugger of the VBA
project.

You would use Item.GetInspector to get a handle to the Inspector window for
that item. From there you get Inspector.CommandBars and can access
CommandBars.Item("Menu Bar") and .Item("Standard").
 

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