M
Michael Pollard
I just found something odd, and while I found an answer, I want it in here.
Problem: DocumentOpened, RunModeEntered, etc., events don't fire, even when
the application is first opened. My code is:
Public Sub Document_DocumentOpened(ByVal doc As IVDocument)
MsgBox ("Program started")
End Sub
and it doesn't do anything.
Apparent cause: One of my functions uses
Application.EventsEnabled = False
to keep events from firing lest it create an endless loop. I couldn't find
how to address the Enabled to a single event. The function apparently
crashed, leaving the events disabled, and apparently events stayed disabled
across Visio being closed, and even across restarting the computer.
If anybody has ideas about other possible causes, I'd love to hear them.
(I'd also like to know how to only disable a single event, specifically
SelectionChanged...)
Problem: DocumentOpened, RunModeEntered, etc., events don't fire, even when
the application is first opened. My code is:
Public Sub Document_DocumentOpened(ByVal doc As IVDocument)
MsgBox ("Program started")
End Sub
and it doesn't do anything.
Apparent cause: One of my functions uses
Application.EventsEnabled = False
to keep events from firing lest it create an endless loop. I couldn't find
how to address the Enabled to a single event. The function apparently
crashed, leaving the events disabled, and apparently events stayed disabled
across Visio being closed, and even across restarting the computer.
If anybody has ideas about other possible causes, I'd love to hear them.
(I'd also like to know how to only disable a single event, specifically
SelectionChanged...)