T
Tobias
Hi
Simple question, but tricky for me......
I've created a small macro to save a backup automatically on another drive
before saving the document:
Private Sub Document_BeforeDocumentSave(ByVal doc As IVDocument)
Dim pageObj As Visio.Page
Set pageObj = ThisDocument.Pages(1)
ThisDocument.SaveAs "Z:\Backup1.vsd"
End Sub
But it changes the pointer in the file to Z, not D where the master is and
it is only saving it on the z, not d - so how can I change it back to D
after the backup is created and save it normally ?
2. question - what is the number in the ThisDocument.Pages(1) refering to ?
It seems to save all pages anyway ?
Thanks
Tobias
Simple question, but tricky for me......
I've created a small macro to save a backup automatically on another drive
before saving the document:
Private Sub Document_BeforeDocumentSave(ByVal doc As IVDocument)
Dim pageObj As Visio.Page
Set pageObj = ThisDocument.Pages(1)
ThisDocument.SaveAs "Z:\Backup1.vsd"
End Sub
But it changes the pointer in the file to Z, not D where the master is and
it is only saving it on the z, not d - so how can I change it back to D
after the backup is created and save it normally ?
2. question - what is the number in the ThisDocument.Pages(1) refering to ?
It seems to save all pages anyway ?
Thanks
Tobias