Stopping the use of enableevents

  • Thread starter Thread starter Steven Revell
  • Start date Start date
S

Steven Revell

Hi,

I want to stop a user being able to turn off enableevents.

i.e. application.enableevents = false

is it possible?

Cheers, Steven
 
Steven Revell said:
I want to stop a user being able to turn off enableevents.

i.e. application.enableevents = false

is it possible?

No.
 
It may be of some use to you to know that ActiveX controls (from the
Controls toolbox) are unaffected by Application.EnableEvents i.e.
their events still fire when False.

To exploit this, for example, you could have an invisible Image object
large enough to cover the user's part of the screen and set
Application.EnableEvents=True in its MouseMove event (hint:
additionally make the control invisible in its MouseDown event).
 
onedaywhen said:
It may be of some use to you to know that ActiveX controls (from the
Controls toolbox) are unaffected by Application.EnableEvents i.e.
their events still fire when False.

To exploit this, for example, you could have an invisible Image object
large enough to cover the user's part of the screen and set
Application.EnableEvents=True in its MouseMove event (hint:
additionally make the control invisible in its MouseDown event).
....

Meaning there's no way to prevent this being used to propagate macro
viruses? Well, it's not like I expected any security from Microsoft products
.. . .
 

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

Back
Top