Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-17-2016, 08:46 AM
Albus Albus is offline Save as PDF with bookmarks Windows 7 64bit Save as PDF with bookmarks Office 2010 64bit
Novice
Save as PDF with bookmarks
 
Join Date: Dec 2014
Posts: 12
Albus is on a distinguished road
Default Save as PDF with bookmarks

Hello,

These are the requirements for my macro:


1. Save the current document in the same folder with the same document name, except it will end in .pdf.
2. The "create bookmarks from headers" option is enabled.
3. It will prompt me if there is a file with the current name already.

I have this code, which accomplishes 1 and 3, but how would I add to it so that "create bookmarks from headers" is always enabled:

Code:
    Sub Save_to_PDF()
    
      With Dialogs(wdDialogFileSaveAs)
            .Format = wdFormatPDF
            .Show
         End With
    
    End Sub
Thanks for your help!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bookmarks Schildkröte Word VBA 8 06-28-2015 11:13 AM
Save as PDF with bookmarks Form updating Bookmarks - writes to the bookmarks multiple times PeterPlys Word VBA 13 01-14-2015 06:41 AM
Can't See Bookmarks bobmayo Word 21 06-04-2013 07:37 AM
Save as PDF with bookmarks When I try to save an existing word doc, save as pops up and will not save... samanthab Word 3 01-19-2013 06:27 AM
Save as PDF with bookmarks Macro VBA "Save as" with bookmarks in file name string Dom37 Word VBA 2 10-31-2011 03:28 AM

Other Forums: Access Forums

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