#1
|
|||
|
|||
Last focused document?
When I open a .DOCM file a need to past some text in the last focused document. Is there a way in VBA to retrieve the last focused document, instead of the activedocument? Thanks
__________________
Backup your original file before doing any modification. |
#2
|
||||
|
||||
The macro here: https://www.msofficeforums.com/word/...tml#post128975 shows how to positively identify whatever document is active when you start a macro and how to positively identify whatever document is opened by the macro.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
split word document based on bookmarks with each new document title of the bookmark | megatronixs | Word VBA | 9 | 09-05-2020 02:29 PM |
how to transfrom a legal word document format to letter size document | Soona | Word | 4 | 04-19-2018 05:54 AM |
From a docx report document save all images in a cell from the document to a folder | censura | Word VBA | 1 | 05-13-2017 12:54 AM |
Single step Word Styles from Source Document through entire Destination document? | xbliss | Word | 6 | 08-27-2016 09:36 PM |
Adding a link into a word document that when pressed, takes user to a page within the same document | yan89 | Word | 1 | 04-29-2016 01:54 PM |