A
Auschten
I had created a template in Word 2003 that would open one userform upon
creation of a new document and would open a second userform when opening a
saved document. This worked great in 2003, but now doesn't work at all in the
Word 2007 format. The code I've been using is this:
In the NewMacros module:
Sub AutoNew()
Form1.Show
End Sub
In the ThisDocument object:
Private Sub Document_Open()
Form2.Show
End Sub
I don't get any errors or anything; the forms just don't open. I've set
macro security to "Enable all macros". I've checked the "Trust access to VBA
project object module". I've placed the template and all documents created
from it in a Trusted Location. If I save the templates and documents in the
"Word 97-2003" format, they work just fine, but when saved as .docx or .dotm,
the userform won't open.
Any suggestions?
Thanks in advance,
Auschten
creation of a new document and would open a second userform when opening a
saved document. This worked great in 2003, but now doesn't work at all in the
Word 2007 format. The code I've been using is this:
In the NewMacros module:
Sub AutoNew()
Form1.Show
End Sub
In the ThisDocument object:
Private Sub Document_Open()
Form2.Show
End Sub
I don't get any errors or anything; the forms just don't open. I've set
macro security to "Enable all macros". I've checked the "Trust access to VBA
project object module". I've placed the template and all documents created
from it in a Trusted Location. If I save the templates and documents in the
"Word 97-2003" format, they work just fine, but when saved as .docx or .dotm,
the userform won't open.
Any suggestions?
Thanks in advance,
Auschten