I have to Exit Design Mode

M

Marcel Saucier

Hello,

I am using textboxes in a Word document. Everything is working fine except
that everytime I do open my document, I have to Exit Design Mode.

Is there a way to be automatically NOT into Design Mode when opening an
existing document ?

Thank you
 
J

John McGhie [MVP -- Word and Word Mac]

Hi Marcel:

Let me repeat an answer given to another poster by MVP Steve Hudson:

Close design windows


Run this in every template you have.


Public Sub CloseDesignWindows()
Dim Index As Long
With ActiveDocument.VBProject
For Index = 1 To .VBComponents.Count
With .VBComponents(Index)
If .HasOpenDesigner Then .DesignerWindow.Close
End With
Next
End With
End Sub


As Steve says, run the macro in each template you have.

Hope it works for you, I have not tested this on a Mac. Cheers

--

John McGhie <[email protected]>
Business Analyst, Consultant Technical Writer
Microsoft MVP (Word, Word for Mac)
Sydney, Australia +61 (0)4 1209 1410
 

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