View the first page

S

Sueprnaut

Hi,
When I open the Visio file it opens the page which I've watched at last
before I close the file. I want to view my first page "Page-1" at every
opening of the Visio file. How can it happens? I don't know if there is a
function in Visio or I have to write code to do this.
If someone know please tell me.
Thank you in advance.
 
J

JuneTheSecond

You would put nect code in the module named ThisDocument.
Private Sub Document_DocumentOpened(ByVal doc As IVDocument)
ActiveWindow.Page = doc.Pages(1)
End Sub
 

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