Acronym Finder
Yes, that syntax is OK, but you need to have those lines before:
Set oTbl = Nothing: Set DocAcro = Nothing: Set DocSrc = Nothing: Set DocTgt = Nothing
as in, for example:
DocAcro.Close Savechanges:=wdDoNotSaveChanges
DocSrc.Close Savechanges:=wdDoNotSaveChanges
Set oTbl = Nothing: Set DocAcro = Nothing: Set DocSrc = Nothing: Set DocTgt = Nothing
You could also reduce these to:
DocAcro.Close False: DocSrc.Close False
Set oTbl = Nothing: Set DocAcro = Nothing: Set DocSrc = Nothing: Set DocTgt = Nothing
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|