![]() |
|
#4
|
|||
|
|||
|
Finally found the problem!!!
It was where I was setting the Endnote options to use regular numbers. Turns out if the document was already using this option, me setting it again caused the document to get selected if the script was undone. So I added the following if statement which solved the problem, only changing the option if needed. Code:
If Not ActiveDocument.Range.EndnoteOptions.NumberStyle = 0 Then
ActiveDocument.Range.EndnoteOptions.NumberStyle = 0
End If
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Copy a selected range of a document to a new document with preserving formatting,header and footer | RobertDany | Word VBA | 10 | 08-10-2021 04:04 AM |
| Insert Comments from List for Whole Document and for Only Selected Portion of Document | rekent | Word VBA | 8 | 11-10-2020 11:01 PM |
Copy selected text from one document and paste to new document in same position on the page
|
gasparik | Word VBA | 1 | 05-11-2020 05:41 AM |
When multiple documents open, undo/redo in one document affects others?
|
seanspotatobusiness | Word | 3 | 07-28-2018 03:15 PM |
Can I undo a repaired document?
|
uberscribbler | Word | 2 | 11-18-2014 11:27 AM |