Multiple pages

S

Sydne

I have a very large diagram with multiple pages. Is there any way to easily
save each page as a separate document?
 
W

wr

Hi Sydne,

this macro saves each pages using the page name
I presume you need other names but it is a start

Sub SaveEachPage()
Dim vpages As Visio.Pages
Dim vpage As Visio.Page
Set vpages = ActiveDocument.Pages
Dim vpagepathname As String
Dim fullcount As Integer
fullcount = vpages.Count
For i = 1 To fullcount
Set vpage = vpages.Item(i)
vpagepathname = "c:\test\" & vpage.Name & ".vsd"
Application.ActivePage.Document.SaveAs (vpagepathname)
Next
End Sub


René
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top