Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Events that get fired

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phil Wood - 10 Mar 2005 23:17 GMT
Does anyone know what event gets fired every time something happens in word?

much appreciated
Jonathan West - 10 Mar 2005 23:31 GMT
> Does anyone know what event gets fired every time something happens in
> word?
>
> much appreciated

1. Which version of Word?
2. What sort of something?

Signature

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 

Phil Wood - 11 Mar 2005 08:52 GMT
Edition - 2003

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

>> Does anyone know what event gets fired every time something happens in
>> word?
[quoted text clipped - 3 lines]
> 1. Which version of Word?
> 2. What sort of something?
Jonathan West - 11 Mar 2005 12:41 GMT
> 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.

Signature

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 

Phil Wood - 11 Mar 2005 15:04 GMT
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

>> Edition - 2003
>>
[quoted text clipped - 20 lines]
> achieve? What is the nature of the application you are wanting to write?
> It may be that a different approach altogether might bear fruit.
Jonathan West - 11 Mar 2005 16:06 GMT
> 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.

Signature

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 

Phil Wood - 12 Mar 2005 08:35 GMT
ok - thanks for help

>> thanks Jonathan 'aka' guru West
>>
[quoted text clipped - 7 lines]
> sufficiently determined user would have little difficulty breaking the
> security you are trying to achieve.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.