Disable events in Visio VBA

T

Tomislav

Hello

Is there a way to temporary disable event in Visio VBA ?
What I have in mind are events of some controls on User forms:
Buttons, ListBoxes etc. Can those events be disabled and then
enabled again ?

Thank you.

Best regards, Tomislav
 
J

JuneTheSecond

I cannot remember other than Enabled property, for example,
Dim coll As Collection
Dim c As Object

Set coll = New Collection
coll.Add CommandButton1
coll.Add Me.CheckBox1
coll.Add Me.ComboBox1
For Each c In coll
c.Enabled = False
Next
 

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