This used to work in Word 2000, but now Word XP runs the code but refuses to actually goto the record.
I'm using a mail merged document as a form letter...but only printing one copy based on input from the user.
sub get_merged_record()
dim PE as string
PE="2004-011" 'this value from user via input box
ActiveDocument.MailMerge.DataSource.ActiveRecord = wdFirstRecord
ActiveDocument.MailMerge.DataSource.FindRecord FindText:=PE, Field _
:="PE_Number "
end sub
any clues?...a missing ref. library perhaps?
I'm using a mail merged document as a form letter...but only printing one copy based on input from the user.
sub get_merged_record()
dim PE as string
PE="2004-011" 'this value from user via input box
ActiveDocument.MailMerge.DataSource.ActiveRecord = wdFirstRecord
ActiveDocument.MailMerge.DataSource.FindRecord FindText:=PE, Field _
:="PE_Number "
end sub
any clues?...a missing ref. library perhaps?