D
dickohead
Good morning,
I am trying to create a macro that will allow me to recall the AutoOpen
function of the current document.
I have been trying the following with no prevail:
From within my Normal.dot file, this one only causes errors.
and this one does half the job
and this one only errors
Now the middle one causes my fields to be cleared, which is nice; but I have
some Input boxes that appear when the user opens the document and they do not
appear.
So my question is: How do I recall the AutoOpen function of my document from
a Macro stored in another document?
On another note, how do I highlight code?
I am trying to create a macro that will allow me to recall the AutoOpen
function of the current document.
I have been trying the following with no prevail:
From within my Normal.dot file, this one only causes errors.
Code:
Sub Reset_Document()
Application.Run ActiveDocument.ThisModule.ThisProcedure
End Sub
and this one does half the job
Code:
Sub Reset_Document()
With ActiveDocument
.Reload
.ResetFormFields
End Sub
and this one only errors
Code:
Sub Reset_Document()
With ActiveDocument
.ResetFormFields
AutoOpen()
End Sub
Now the middle one causes my fields to be cleared, which is nice; but I have
some Input boxes that appear when the user opens the document and they do not
appear.
So my question is: How do I recall the AutoOpen function of my document from
a Macro stored in another document?
On another note, how do I highlight code?