A
anon
Hi All,
I wrote a template that has the 'autonew' function and a userform, the
results of which are placed into the new document at locations denoted
by bookmarks using lines such as this:
..Bookmarks("ClientContact").Range.InsertBefore ClientContact
The code ends with:
UserForm1.Hide
End Sub
The template was originally written in word 98. Now, in Word X, after
the userform is hidden and all the info is in place, whenever I hit
enter/return, Word inserts all the info from the userform again. I've
rewritten the code (several times) with the same result.
The oddest part is that the template works fine when I make any change
to it at all as long as I don't quit Word. The problem only happens
after I restart the application. Almost like Word is writing something
to the template on shutdown.
Any insights?
Thanks for your time!
Nat
I wrote a template that has the 'autonew' function and a userform, the
results of which are placed into the new document at locations denoted
by bookmarks using lines such as this:
..Bookmarks("ClientContact").Range.InsertBefore ClientContact
The code ends with:
UserForm1.Hide
End Sub
The template was originally written in word 98. Now, in Word X, after
the userform is hidden and all the info is in place, whenever I hit
enter/return, Word inserts all the info from the userform again. I've
rewritten the code (several times) with the same result.
The oddest part is that the template works fine when I make any change
to it at all as long as I don't quit Word. The problem only happens
after I restart the application. Almost like Word is writing something
to the template on shutdown.
Any insights?
Thanks for your time!
Nat