Skip to content

Instantly share code, notes, and snippets.

@royashbrook
Created February 25, 2018 13:54
Show Gist options
  • Save royashbrook/d99da13b9c2abc3a054584265772aa14 to your computer and use it in GitHub Desktop.
Save royashbrook/d99da13b9c2abc3a054584265772aa14 to your computer and use it in GitHub Desktop.
Sub FWAP()
Dim OriginalPage As Visio.Page
Set OriginalPage = ActivePage
Dim PagObj As Visio.Page
For Each PagObj In ActiveDocument.Pages
ActiveWindow.Page = PagObj.Name
ActiveWindow.ViewFit = visFitPage
Next PagObj
ActiveWindow.Page = OriginalPage
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment