Quote:
Originally Posted by bearcublandon
Thank you Peter.
|
Peter???
Quote:
Originally Posted by bearcublandon
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
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.