Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word XP ignoring merged field search

Status
Not open for further replies.

ETID

Programmer
Jul 6, 2001
1,867
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top