View Single Post
 
Old 12-23-2018, 02:19 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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 bearcublandon View Post
Thank you Peter.
Peter???
Quote:
Originally Posted by bearcublandon View Post
So the Range. Paragraph object referred to in the code refers to a line on the document (line the row object in Excel).
No, it actually refers to a paragraph. It's impossible to tell from your screenshot what paragraph # the desired content is in. For all I know at this stage, all the heading content is just one paragraph and the desired content is in paragraph 2.
Quote:
Originally Posted by bearcublandon View Post
How does the code know to create a new PDF for each employee (just curious).
It puts that part into the StrTxt variable, then uses that variable's content for the filename in the SaveAs code.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote