KeyPress Events

D

Daniel F

I am trying to write a function where I can trap that the enter key ha
been pressed. Not on a form, just on a standard sheet.

What I am actually doing is for Word, not excel but it sounds like
lot of intelligent people are on here, so I thought I would give it
try.

When the enter key is pressed, I want to check the formatting style an
then perform some other actions based on that.

I see examples of how to use the Keypress and Keydown functions on
form but not on a plain document.

I am a newbie so forgive me if this is VB/VBA 101.


Thank
 
Top