Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Auto entry clock into a cell on tabbing into it

How do you have a cell auto fill with a real time and then remain fixed to
indicate when a operator carried out an entry?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Auto entry clock into a cell on tabbing into it

Let's use cell B9 as an example:

In worksheet code enter the following:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Range("B9"), Target) Is Nothing Then
If IsEmpty(Target) Then
Target.Value = Now()
End If
End If
End Sub


If you tab into B9 and it is empty, the time will automatically be entered.

If it is not empty, nothing changes.


REMEMBER: worksheet code, not a standard module.
--
Gary''s Student - gsnu200719
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Auto entry clock into a cell on tabbing into it

Oh Wow!

Sorry but this has gone right over my head I'm sorry to say. Is this
something that can be simplified so it becomes a formula entered into the
cell??

Thanks John

"Gary''s Student" wrote:

Let's use cell B9 as an example:

In worksheet code enter the following:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Range("B9"), Target) Is Nothing Then
If IsEmpty(Target) Then
Target.Value = Now()
End If
End If
End Sub


If you tab into B9 and it is empty, the time will automatically be entered.

If it is not empty, nothing changes.


REMEMBER: worksheet code, not a standard module.
--
Gary''s Student - gsnu200719

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Auto entry clock into a cell on tabbing into it

Hi

Try CTRL+SHIFT+SEMICOLON (Ctrl : )
to give the current time

--
Regards

Roger Govier


"John" wrote in message
...
Oh Wow!

Sorry but this has gone right over my head I'm sorry to say. Is this
something that can be simplified so it becomes a formula entered into
the
cell??

Thanks John

"Gary''s Student" wrote:

Let's use cell B9 as an example:

In worksheet code enter the following:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Range("B9"), Target) Is Nothing Then
If IsEmpty(Target) Then
Target.Value = Now()
End If
End If
End Sub


If you tab into B9 and it is empty, the time will automatically be
entered.

If it is not empty, nothing changes.


REMEMBER: worksheet code, not a standard module.
--
Gary''s Student - gsnu200719



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
auto population based on single cell entry olrustyxlsuser Excel Discussion (Misc queries) 8 April 28th 07 01:08 AM
Auto Entry in a Cell englishtwit Excel Discussion (Misc queries) 4 May 17th 06 04:07 PM
Auto fill cell entry Brian Matlack Excel Discussion (Misc queries) 1 March 8th 06 10:55 PM
Auto-copy the last entry in a column to a new cell George F Excel Worksheet Functions 2 November 18th 05 07:36 PM
Auto updates - Clock tom300181 Excel Discussion (Misc queries) 0 August 5th 05 11:13 AM


All times are GMT +1. The time now is 04:29 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"