Reordering pages via automation

P

Phil Hazell

Hi,

Does anyone know how to reorder pages using visio 2003 automation?

I have an application whose template has changed and I need to be able to
reorder pages in any old documents to match the new format.

Thanks

Phil
 
D

Dalsgaard

Phil said:
Hi,

Does anyone know how to reorder pages using visio 2003 automation?

I have an application whose template has changed and I need to be able to
reorder pages in any old documents to match the new format.

Thanks

Phil

Hi,

Don't know which order you want to sort the pages, but each page has an
index you can set.

ActiveDocument.Pages("Pagename").Index = 1
 
Top