Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-22-2018, 09:54 PM
macropod's Avatar
macropod macropod is offline Macro to convert Mail Merge Document to PDF Windows 7 64bit Macro to convert Mail Merge Document to PDF Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,516
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to convert Mail Merge Document to PDF Convert particular blocks of text within a word document to tables using macro benbob Word VBA 5 07-15-2018 03:20 AM
Macro to convert Mail Merge Document to PDF Mail Merge Macro ch1325 Word VBA 2 06-08-2015 06:18 AM
Mail Merge Macro spc94 Word VBA 2 06-04-2015 07:06 AM
Convert mail merge to PDF then email TeriJean Mail Merge 0 10-04-2011 03:52 PM
Macro to convert Mail Merge Document to PDF Word Doc Macro (mail Merge) ajolson1964 Word VBA 1 05-10-2011 10:15 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:59 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft