Private Sub Document_DocumentOpened(ByVal doc As IVDocument
Call Main )
End Sub
dont work.But if i open visio file in other ways,everythink works excelent.Why?
Please help
Sorry for my english
Audrius
Pete
I have the same trouble, i have a macro function in VBA
which i want to load and be executed automatically when i
open the visio file. but i have it as both DocumentOpened
and also as DocumentCreated like you have suggested, but
its just not working and the function is not being invoked
at all. to test if its invoked, i am throwing an error pop-
up using Err.Raise function, but nothing seems to be
getting executed when i open the visio file. pls tell me
if i am missing something here.
>.
>
>I have the same trouble, i have a macro function in VBA
>which i want to load and be executed automatically when i
>open the visio file. but i have it as both DocumentOpened
>and also as DocumentCreated like you have suggested, but
>its just not working and the function is not being invoked
>at all. to test if its invoked, i am throwing an error pop-
>up using Err.Raise function, but nothing seems to be
>getting executed when i open the visio file. pls tell me
>if i am missing something here.
Is your code in the document you're opening?
--
Reinier