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.
 
Top