Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 02-05-2020, 03:05 PM
timf timf is offline How to print bookmarks in a document to separate .pdf file Windows 10 How to print bookmarks in a document to separate .pdf file Office 2019
Novice
How to print bookmarks in a document to separate .pdf file
 
Join Date: Oct 2019
Posts: 7
timf is on a distinguished road
Default

gmayor, I'm sorry I wasn't able to get back to you sooner. I have recently started this project back up and I was able to make it work. I had a few errors in my bookmarks. Thank you!

I'm messing around with this a little more and I'm wondering, can I name the PDF by one of the headers within the bookmark?

My understand of the code is that it:
1. Creates a path.
2. Looks for a bookmark that does not have hidden text.
3. Creates that bookmark into a PDF and names it.
4. Repeats until all non-hidden text bookmarks found.

I'm thinking that if I wanted to name the file by using a heading style I'd have to plug it in within step 3. More specifically, replace oBM.Name with something that refers to a heading style .Name. However, I can't figure out what that language would be. I've tried Headerstyle and Styles but I haven't gotten it to work.

Any push in the right direction would be greatly appreciated!
Reply With Quote
 

Tags
print command, vba code



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word document with VBA and Form Fields reset when select File,Print fatal.lordes Word VBA 9 04-27-2018 11:30 PM
Hyperlinking to Bookmarks in a separate Word document Cat Perry Word 7 03-23-2018 04:39 PM
How to print bookmarks in a document to separate .pdf file Tweak Macro to Save Each Page of Word Document as Separate PDF or Doc File? Hewg74 Word VBA 3 08-22-2016 05:20 PM
Any easy way to separate a Word document into separate files? SamHelm Word 0 08-21-2010 05:29 AM
print file is 14MB when document is only 850kb pompeydave PowerPoint 0 06-01-2009 05:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:20 PM.


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