Breaking multi-page visio files into multiple files 
Author Message
 Breaking multi-page visio files into multiple files

I am trying to find an easy way to separate multiple pages
in one visio file into separate single-page visio files.
Does anyone have any ideas?


Sat, 07 Feb 2004 05:21:50 GMT  
 Breaking multi-page visio files into multiple files
The following code works for me. It copies the page in the active window
to a new document.You must adapt page height and width and perhaps some
other properties too.

    Dim doc As Document
    Dim sel As Selection
'select all shapes in active window
    ActiveWindow.SelectAll
    Set sel = ActiveWindow.Selection
' and copy selection into clipboard
    sel.Copy
' add new document
    Set doc = Application.Documents.Add("")
' get first page
    Set newPage = doc.Pages(1)
' rename it
    newPage.Name = "NewPage"
' now the active window shows the new doc
' paste the clipboard into it
    ActiveWindow.Paste

Hope this helps
  Stefan



Quote:
> I am trying to find an easy way to separate multiple pages
> in one visio file into separate single-page visio files.
> Does anyone have any ideas?



Sat, 07 Feb 2004 15:33:36 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Creating multi-page TIff file from separate Tif files

2. Extract a single page from a multi-page TIFF to a file

3. Export Visio pages to Jpg files

4. Defining mulitple pages in CSV or TXT files, to be imported into Visio

5. Printing and Previewing Page Breaks of Richtext files

6. Printing and Preview of Page Breaks with Richtext Files

7. Printing and Previewing Page Breaks of Richtext files

8. Adding Page Breaks To Files

9. Urgent: Passing Page break from Crystal to Text file

10. Saving Visio shapes to file/db (Visio 2000)

11. Problems with Visio 5.0-Files in Visio 2000

12. Multi-page TIFF file display

 

 
Powered by phpBB® Forum Software