Skip to content

Instantly share code, notes, and snippets.

@Hades32
Created August 14, 2011 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hades32/1145013 to your computer and use it in GitHub Desktop.
Save Hades32/1145013 to your computer and use it in GitHub Desktop.
Export (all) Visio pages as PDF
Sub expCurrent()
Call Application.ActiveDocument.ExportAsFixedFormat(visFixedFormatPDF, ActiveDocument.Path & "\Images\" & Application.ActivePage.Name & ".pdf", visDocExIntentPrint, visPrintCurrentPage)
End Sub
Sub expAll()
Dim p As Page
For Each p In ActiveDocument.Pages
ActiveWindow.Page = p
Call expCurrent
Next p
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment