How can I run a VBA macro after each keystroke?

J

John Murray

I want to write a VBA macro that will be run after each keystroke. How do
I hook the macro into Word so that Word will call my macro?

Thank you ,

john murray
Bountiful, UT
 
J

Jezebel

You can't. The other poster's suggestion that you should bind every possible
keystroke with your macro is not a serious possibility (probably they've
never tried it; or they didn;t understand the question).
 
D

Default User

This worked perfectly. I can now cause Word to run a macro after specific
key sequences which may be tied to words that a user might type. I only
have to hook the characters that terminate the key sequences or words that I
am interested in. As the later poster said, I probably will not hook every
possible keystroke, just a limited few. However, the limited few will allow
me to run my macro during normal typing, not requiring a user to type
Ctrl-Shift-T or some other control sequence to run the macro.

Thank you!

John
 

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