ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   KeyPress Events (https://www.excelbanter.com/excel-programming/302980-keypress-events.html)

Daniel F

KeyPress Events
 
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

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 03:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com