For starters, ActiveDocument needs to be removed from the beginning of each
of these lines since they are contained in a With structure for
ActiveDocument:
ActiveDocument.FormFields("Text19").Result = frm.Text1.Text
ActiveDocument.FormFields("Text47").Result = frm.Text2.Text
ActiveDocument.FormFields("Text30").Result = frm.Text3.Text
ActiveDocument.FormFields("Text21").Result = frm.Text4.Text
ActiveDocument.FormFields("Text64").Result = frm.Text5.Text
ActiveDocument.FormFields("Text53").Result = frm.Text6.Text
ActiveDocument.FormFields("Text48").Result = frm.Text7.Text
ActiveDocument.FormFields("Text63").Result = frm.Cmd1.Value
ActiveDocument.FormFields("Text58").Result = frm.Text8.Text
ActiveDocument.FormFields("Text38").Result = frm.Text9.Text
What happens if you comment oScratchPad.Close wdDoNotSaveChanges? Do you
encounter another runtime error? If not then take a look at the document
that should have been closed by the macro and see if anything strikes you as
odd.
Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.
~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP
Word FAQ:
http://mvps.org/word
TechTrax eZine:
http://mousetrax.com/techtrax/
MVP FAQ site:
http://mvps.org/