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

How can I get Excel to automatically input the current time when a cell is
selected? Also, upon selecting the cell again, the time must be removed.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default input current time

from help

Now()
Numbers to the right of the decimal point in the serial number represent the
time; numbers to the left represent the date. For example, the serial number
..5 represents the time 12:00 noon

in a formula it will always recalculate so you need to tie to an event.

Easiest would be to viewtoolbarscontrol toolbox - selexct a command button
and add this to your spreadsheet. tie the code to clicking the box instead
of the cell and tie the results to the cell.


"KimR.Hammel" wrote:

How can I get Excel to automatically input the current time when a cell is
selected? Also, upon selecting the cell again, the time must be removed.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default input current time

I was going to paste =NOW(), then copy paste special value upon
activation of the cell. I don't know how to get it to do something upon
activation of the cell, however.

"Vacation's Over" wrote:

from help

Now()
Numbers to the right of the decimal point in the serial number represent the
time; numbers to the left represent the date. For example, the serial number
.5 represents the time 12:00 noon

in a formula it will always recalculate so you need to tie to an event.

Easiest would be to viewtoolbarscontrol toolbox - selexct a command button
and add this to your spreadsheet. tie the code to clicking the box instead
of the cell and tie the results to the cell.


"KimR.Hammel" wrote:

How can I get Excel to automatically input the current time when a cell is
selected? Also, upon selecting the cell again, the time must be removed.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default input current time

My preference for adding a touch of programming would be to add a command
button to the sheet, click the button & it changes cell value to current time.

Viewtoolbars controls toolbox
choose design view
click command button and then click,smalldrag - drop to size and locate the
button
right click the button
add this code after changing "A4" to desired cell for time

Activesheet.Range("A4").Value = Now()

close the VBE window

format your "A4" to desired time/date accuracy and style
exit design mode
close controls toolbox

click away & watch A4 change

"KimR.Hammel" wrote:

I was going to paste =NOW(), then copy paste special value upon
activation of the cell. I don't know how to get it to do something upon
activation of the cell, however.

"Vacation's Over" wrote:

from help

Now()
Numbers to the right of the decimal point in the serial number represent the
time; numbers to the left represent the date. For example, the serial number
.5 represents the time 12:00 noon

in a formula it will always recalculate so you need to tie to an event.

Easiest would be to viewtoolbarscontrol toolbox - selexct a command button
and add this to your spreadsheet. tie the code to clicking the box instead
of the cell and tie the results to the cell.


"KimR.Hammel" wrote:

How can I get Excel to automatically input the current time when a cell is
selected? Also, upon selecting the cell again, the time must be removed.

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
YTD budget based on current input of actual Sanj Excel Discussion (Misc queries) 5 June 9th 09 11:12 PM
Having the current time inserted w/o updating the current time sherobot Excel Worksheet Functions 2 October 2nd 06 05:05 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
Having input the current date in a cell I want to lock it Frank Kabel Excel Programming 0 August 26th 04 04:37 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 07:25 PM.

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"