ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   program a function key (https://www.excelbanter.com/excel-programming/278316-program-function-key.html)

John Sheakley

program a function key
 
How do I program a function key on my keyboard to enter the current time
into a cell?
In one key press of the function key, the current time should be entered in
"h:mm AM/PM" format.



keepITcool

program a function key
 
bill et.al have done it for u:

[ctrl][shift][;] time (in local format)
[ctrl][;] date (in local format)

else have a look at onkey in vba help

keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"John Sheakley" wrote:

How do I program a function key on my keyboard to enter the current
time into a cell?
In one key press of the function key, the current time should be
entered in "h:mm AM/PM" format.






All times are GMT +1. The time now is 01:29 PM.

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