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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UNDO using VBA in Word 2010

Microsoft Word How To?

UNDO using VBA in Word 2010

by  PWD  Posted    (Edited  )
I'm not sure what earlier versions this may work in but it works in 2010.

Code:
ActiveDocument.Undo

The context of this is in MailMerge. I'm exporting each record as a .pdf without the fields highlighted then want to go back to the next record.

Code:
ActiveDocument.Fields.Unlink

Convert_2_PDF

ActiveDocument.Undo
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top