View Single Post
 
Old 12-22-2018, 09:54 PM
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 bearcublandon View Post
How would I amend your code to have it look at the "Name of Participant" line for the name of the new PDF?
For that, you'd need to change:
Set Rng = .Range.Paragraphs(1).Range
to, say:
Set Rng = .Range.Paragraphs(5).Range
and change:
StrTxt = .Text
to:
StrTxt = Split(.Text,":" & vbTab)(1)
but, as I said, I'd need to see an actual document to be sure.
Quote:
Originally Posted by bearcublandon View Post
Do you need an entire document because i could probably make one from scratch but I wouldn't be able to provide the other 34 pages in the document.
A single page containing everything down to at least the "Name of Participant" line in your screenshot would do.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote