Hello,
I am trying to find a way to use VB to create a universal event listener for
MS Word that would allow me to grab any action that the user takes in an open
Word doc (typing a word, changing a font, scrolling, etc.) and then to repeat
that event in another Word doc. I imagine that these would be the same
events that are automatically recorded in a macro or saved in the undo log,
but I don't know how to get access to them so that I can repeat them
programatically, without the user having to save and execute a macro. Any
help would be greatly appreciated.
Thanks,
Andy
Jezebel - 17 Oct 2005 03:42 GMT
There's no way to do this through directly VB/VBA. Many events are
detectable (check the Events listings for the Application and Document
objects) -- but there are many others that are not, and which are not
included in the Undo list or recorded when you record a macro. And many that
are recorded would be difficult to interpret relative to another document.
In principle you could do it through API calls to monitor the Windows
message stack; but I doubt you could do it fast enough -- at least using
VB -- that the original Word usage remained acceptable.
You could also look at mouse and keyboard logging software.
> Hello,
>
[quoted text clipped - 13 lines]
> Thanks,
> Andy