ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Time Entry (https://www.excelbanter.com/excel-worksheet-functions/6642-time-entry.html)

mike47338

Time Entry
 
Is there any way to enter the current time in a selected sell by only
pressing 1 (one) key? (as opposed to Ctrl-Shift-;)

Don Guillett

a macro with a right click event?

--
Don Guillett
SalesAid Software

"mike47338" wrote in message
...
Is there any way to enter the current time in a selected sell by only
pressing 1 (one) key? (as opposed to Ctrl-Shift-;)




Gord Dibben

Not that I know of.

How about a one-click button and some code.

Sub NOWTIME()
With ActiveCell
.Value = Format(Now(), "h:mm:ss AM/PM")
.Columns.AutoFit
End With
End Sub


OR you could run the code from a shortcut key combo CRTL + T

One less keystroke.

Gord Dibben Excel MVP

On Thu, 18 Nov 2004 08:00:06 -0800, mike47338
wrote:

Is there any way to enter the current time in a selected sell by only
pressing 1 (one) key? (as opposed to Ctrl-Shift-;)



mike47338

Thanks. That was exactly what I was looking for.

"Gord Dibben" wrote:

Not that I know of.

How about a one-click button and some code.

Sub NOWTIME()
With ActiveCell
.Value = Format(Now(), "h:mm:ss AM/PM")
.Columns.AutoFit
End With
End Sub


OR you could run the code from a shortcut key combo CRTL + T

One less keystroke.

Gord Dibben Excel MVP

On Thu, 18 Nov 2004 08:00:06 -0800, mike47338
wrote:

Is there any way to enter the current time in a selected sell by only
pressing 1 (one) key? (as opposed to Ctrl-Shift-;)





All times are GMT +1. The time now is 06:51 AM.

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