Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-15-2024, 10:19 PM
Bakmartin Bakmartin is offline Code to save word as pdf in specific folder with name from document fields Windows 11 Code to save word as pdf in specific folder with name from document fields Office 2016
Novice
Code to save word as pdf in specific folder with name from document fields
 
Join Date: Oct 2024
Posts: 1
Bakmartin is on a distinguished road
Default Code to save word as pdf in specific folder with name from document fields

I am hoping someone can help me with some simple code, I’m a complete novice here .
I am trying to enhance the receipting process for a volunteer organisation. We have a Canadian POS which outputs to a word mail merge document. I would like to have some code that would allow me to save the document:
As a pdf
To a specific folder in our system
Filename to be made up of:
1. Code for Location eg DWN
2. Content of two fields in the merge document eg INV No, Terms


Any assistance would be greatly appreciated
Reply With Quote
  #2  
Old 10-16-2024, 01:20 AM
macropod's Avatar
macropod macropod is offline Code to save word as pdf in specific folder with name from document fields Windows 10 Code to save word as pdf in specific folder with name from document fields Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,465
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

Since it appears you're using mailmerge, see the Send Mailmerge Output to Individual Files topic in the Mailmerge Tips & Tricks 'Sticky' thread at the top of the Mailmerge forum: https://www.msofficeforums.com/mail-...ps-tricks.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 10-16-2024, 03:44 AM
gmayor's Avatar
gmayor gmayor is offline Code to save word as pdf in specific folder with name from document fields Windows 10 Code to save word as pdf in specific folder with name from document fields Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

You may find Merge and Split useful.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a template to save to a specific folder Chris71 Word 2 07-14-2024 06:36 AM
VBA code to save to a specific location Coreybops Word VBA 1 03-02-2023 03:00 PM
Vba code to save document as pdf using document property text and rename folder. staicumihai Word VBA 1 12-21-2015 07:39 AM
Code to save word as pdf in specific folder with name from document fields How can I save all attachments in a folder with specific criteria? terrymac Outlook 1 11-12-2015 06:55 AM
Extract VBA code to save in Word document Dave T Word VBA 4 01-26-2015 08:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:02 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