General information
Category:
Coding, syntax & commands
Title:
Anyone know Word XP Syntax for Doc Close?
Hi Y'all,
Customer is switching to Word XP (Word 2002) and a macro of theirs is failing. This worked under Word 97 but somehow the syntax is not right. I have dug and dug around the help files for Word 97/Word 2002 but they are not at all helpful ie. their example bombs. I have also dug around on the MSFT site until I was fed up as could not even get a match back to a more updated example. Here is the code in short:
' add a new document and grab its name to use as a handle; this new doc is just a temp doc to paste stuff into which will later be dumped
Documents.Add
lcTempDoc = ActiveDocument.Name
' do a bunch of cutting and pasting etc and then dump the temp doc
Documents.Item(lcTempDoc).Close SaveChanges:=wdDoNotSaveChanges
Albert
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only