How launch a macro on open

W

wr

Hi Roland,

use the documentopened in the ThisDocument section of the project in visio's
visual basic editor

Private Sub Document_DocumentOpened(ByVal doc as IVDocument)
'place your code here
' or call a module with 'call Module1.MacroOnOpen
End Sub

René
 
M

Michel LAPLANE

You can also use the Document_RunModeEntered event that occur after
DocumentOpened and indicating that the document is running.
 

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