How do I open a file with control box in run mode in MS Word?

B

Balan

I have created a document with some control boxes in it. However, when I
reopen the file, it opens in Design Mode and I need to put it off so as to
work on the control boxes. how can I open the file in run mode? In Office
2000, this problems does not exist; this happens only with Office 2003
package.
 
B

Bear

Balan:

Do you mean ActiveX controls or formfields?

For ActiveX controls, it's possible that a related macro or userform was
left in design mode in the VBE. Try this code to see if any are.

Public Sub CloseDesignWindows()
Dim k As Long
With ActiveDocument.VBProject
For k = 1 To .VBComponents.Count
With .VBComponents(k)
If .HasOpenDesigner Then
MsgBox "Found in: " & .Name
.DesignerWindow.Close
End If
End With
Next
End With
End Sub

Bear
 
B

Balan

Dear Bear,
Thank you for your response.
Actually this is a check box from the control box tool bar. It is still
opening in the design mode only. This problem does not exist in Office 200
package. I have experienced this only in Office 2003 package. please help
me if you can.
Thanks
Balan
 
E

Ed

Hi Balan (& Bear),

With Word 2003 I think you get that effect if your macro security level
(Tools>Macro>Security) is set to High.

Regards.

Ed
 
B

Balan

Dear Ed,

Thank you for your advice. It helped solve my problem.

Thanks once again
Balan
 

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