View Single Post
 
Old 06-21-2023, 09:30 PM
teachwrite teachwrite is offline Windows 11 Office 2021
Novice
 
Join Date: Jun 2023
Posts: 3
teachwrite is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
teachwrite

Is the 'different' document to write to already open or does the code have to open it? If it is open, how will the code know which document it is? Putting a copy of the selected text somewhere else is easy but the code needs to know how to specify that document.
I'd like the code to create a new document and save it within the same folder as the source document. The new doc should be named 'Style sheet'.

Then, that style sheet doc would stay open, and any subsequent times the macro is run, it would add the selected words to that style sheet doc.

Is that doable?
Reply With Quote