View Single Post
 
Old 04-13-2017, 02:09 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by mihnea96 View Post
My question was if there is any VBA code for extracting text from the document and use it as a name for that document, as I cannot install any macros.
Without wanting to place too fine a point on it, VBA code and macros in the context of any Microsoft Office application are the same thing. Instead of referring to:
Quote:
the 'Split Merged Output to Separate Documents' macro in the Mailmerge Tips and Tricks thread
I could have referred to:
Quote:
the 'Split Merged Output to Separate Documents' VBA code in the Mailmerge Tips and Tricks thread
and it would have meant the same thing.

Whether you copy & paste the VBA code from the link I gave you (which doesn't require you to install anything) or you sit there and re-type it for yourself, you'll end up with the same thing. Regardless, the same VBA code demonstrates how you can retrieve content from a document to use in the naming of a part of that document.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote