Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Button to set current time

I need a button in a excel spreadsheet that when pressed inserts the current
time in a cell. Any ideas ?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,886
Default Button to set current time

Hi

Control + : (that's Control + Colon) inserts current time to a cell.
Control + ; ( + semicolon) insets current Date

--
Regards

Roger Govier


"Mariner" wrote in message
...
I need a button in a excel spreadsheet that when pressed inserts the
current
time in a cell. Any ideas ?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Button to set current time

Why not just use the built in shortcut:
ctrl-:
(ctrl-colon aka ctrl-shift-semicolon)



Mariner wrote:

I need a button in a excel spreadsheet that when pressed inserts the current
time in a cell. Any ideas ?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Button to set current time

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

On Wed, 26 Jul 2006 00:57:38 +0100, "Roger Govier"
wrote:

Hi

Control + : (that's Control + Colon) inserts current time to a cell.
Control + ; ( + semicolon) insets current Date

--
Regards

Roger Govier


"Mariner" wrote in message
...
I need a button in a excel spreadsheet that when pressed inserts the
current
time in a cell. Any ideas ?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Button to set current time

range("a1")=time

--
Don Guillett
SalesAid Software

"Mariner" wrote in message
...
I need a button in a excel spreadsheet that when pressed inserts the
current
time in a cell. Any ideas ?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Excel: is there a way of inserting the current time (what time it is right NOW) [email protected] Excel Discussion (Misc queries) 2 May 20th 07 11:35 PM
Having the current time inserted w/o updating the current time sherobot Excel Worksheet Functions 2 October 2nd 06 05:05 PM
Button/Script to create a new workbook from a current one. downer Excel Worksheet Functions 0 February 17th 06 09:09 PM
Can I automatically enter the current date or current time into a Ben New Users to Excel 7 October 19th 05 03:38 PM
Current time Current date. yo beee Excel Programming 3 July 22nd 04 03:41 AM


All times are GMT +1. The time now is 01:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"