G Guest Jul 26, 2006 #1 I need a button in a excel spreadsheet that when pressed inserts the current time in a cell. Any ideas ?
I need a button in a excel spreadsheet that when pressed inserts the current time in a cell. Any ideas ?
R Roger Govier Jul 26, 2006 #2 Hi Control + : (that's Control + Colon) inserts current time to a cell. Control + ; ( + semicolon) insets current Date
Hi Control + : (that's Control + Colon) inserts current time to a cell. Control + ; ( + semicolon) insets current Date
D Dave Peterson Jul 26, 2006 #3 Why not just use the built in shortcut: ctrl-: (ctrl-colon aka ctrl-shift-semicolon)
G Gord Dibben Jul 26, 2006 #4 If you really want a button............ Assign this macro to a button. Sub NOWTIME() ActiveCell.Value = Format(Now(), "h:mm:ss AM/PM") End Sub Gord Dibben MS Excel MVP
If you really want a button............ Assign this macro to a button. Sub NOWTIME() ActiveCell.Value = Format(Now(), "h:mm:ss AM/PM") End Sub Gord Dibben MS Excel MVP