![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
I would question where does the document get saved? If you make a change to a document and neglect to save it, why would you expect that change to be in the document when you open it.
I'm not sure when the autocode is initiated to run. Is Document_Close run before the document closes or does it run after?
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#2
|
||||
|
||||
|
Quote:
In my testing, the code works correctly. The question arises therefore as to how the OP is establishing that the variable hasn't been deleted from the document. The mere fact that the result in a DOCVARIABLE field referencing the deleted variable might remain unchanged, for example, isn't evidence; refreshing that field would soon delete its result (but not the field itself).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
[Word 2016 for Mac] SKIPIF condition doesn't work
|
rschnell | Mail Merge | 3 | 10-19-2017 02:01 PM |
Word 2016 - Delete all Tab stops
|
avonw | Word | 6 | 10-07-2017 01:22 PM |
| Slicer built in 2016 doesn't work in 2013 | cdoody | Excel | 0 | 10-31-2016 10:25 AM |
upgrading from word 2011 to word 2016
|
classicdining | Word | 1 | 07-01-2016 04:37 PM |
Word 2007 Font Color Doesn't Work
|
nnicko | Word | 2 | 04-16-2010 01:21 PM |