Events that get fired

P

Phil Wood

Does anyone know what event gets fired every time something happens in word?

much appreciated
 
P

Phil Wood

Edition - 2003

Looking to trap any thing i.e. keystrokes, mouse movements, etc then disable
cut and past
 
J

Jonathan West

Phil Wood said:
Edition - 2003

Looking to trap any thing i.e. keystrokes, mouse movements, etc then
disable cut and past

Then look in the VBA Help for the list of available events, there are quite
a few different ones for different purposes, and you will need to trap them
all. Also take a look at this article on how to write application event
procedures


"How to create global event procedures similar to AutoOpen, AutoNew and
AutoClose, without using Normal.dot"
http://www.word.mvps.org/FAQs/MacrosVBA/PseudoAutoMacros.htm


Writing application event procedures
http://www.word.mvps.org/FAQs/MacrosVBA/AppClassEvents.htm

However, given the all-encompassing nature of what you appear to want, I
suspect that you are letting yourself in for a lot of work, and in the end
you may not achieve it all anyway.

So, let me ask a more fundamental question. What are you trying to achieve?
What is the nature of the application you are wanting to write? It may be
that a different approach altogether might bear fruit.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
P

Phil Wood

thanks Jonathan 'aka' guru West

Have an image in a document that I dont want people to copy or cut out of
the document - any time its selected and those funcitons occur I clear the
clipboard...

Thanks for help
 
J

Jonathan West

Phil Wood said:
thanks Jonathan 'aka' guru West

Have an image in a document that I dont want people to copy or cut out of
the document - any time its selected and those funcitons occur I clear the
clipboard...

Forget it. Word is not a secure application and you cannot control how or
whether VBA code will run on machines whose administration you are not
responsible for. Even where you have administrative control, any
sufficiently determined user would have little difficulty breaking the
security you are trying to achieve.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
P

Phil Wood

ok - thanks for help


Jonathan West said:
Forget it. Word is not a secure application and you cannot control how or
whether VBA code will run on machines whose administration you are not
responsible for. Even where you have administrative control, any
sufficiently determined user would have little difficulty breaking the
security you are trying to achieve.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

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