Stop form from opening in design mode

M

Memby

Does anyone know how to prevent a Word Document (with a
few control objects on it) from opening in design mode?

I created a word document with some radio buttons and
check boxes on it (no actual programming) and now every
time the document gets opened, it opens in design mode.
This is confusing for the people who use it because they
can't click the boxes in design mode.
 
D

DA

Not sure what you mean by design mode, but if you're referring to the
"Control Toolbox" or "Forms" toolbar, you can turn these off by doing
the following:

- Start the VBA editor (Alt-F11)
- Go to "ThisDocument" in your document project > right click and
select "View Code"
- There are two drop down menus at the top of the code window. Select
the left one and pick "Document".
- Select the "Open" event from the right dropdown menu.
- Now paste the following code into the window

'--------
Private Sub Document_Open()
If CommandBars("Control Toolbox").Visible = True Then
CommandBars("Control Toolbox").Visible = False
End If
End Sub
'--------

Substitute the "Control Toolbox" item with any toolbar name that you
don't want displayed.

Hope this is what you were after.
Dennis.
 
G

Guest

Thanks for the suggestion. I think it would work if I
could enable macros. I don't think I have access to
change my security settings, however.

memby
 

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