PC Review


Reply
Thread Tools Rate Thread

To Capture the time stamp on entry of a value in cell.

 
 
Khozema Sherwala
Guest
Posts: n/a
 
      5th Dec 2009
Hi,

I am trying to capture the time on the entry of the cell in column A.
Scenario is I enter a person code in cell in A column and in B column I need
a time stamp. I am using now(). It works for one row. but as i proceed to
scan further all the values in column b is getting updated as i am using
now(). I want to capture time stamp for each entry of person code in col A
and then freeze timestamp in col b and proceed. I am trying to get something
like,

A1
3031
B1
10:30 Pm
A2
3032
B2
10:35 PM
and so on...

Any pointer or help here will help me. Thanks in advance.

best regards,
 
Reply With Quote
 
 
 
 
Phuelgod
Guest
Posts: n/a
 
      5th Dec 2009
Try this:

Private Sub Worksheet_Change(ByVal target As Range)

If target.Column = 1 Then target.Offset(0, 1).Value = Now()

End Sub

--
Frank

"Do or do not; There is no try"
-Yoda


"Khozema Sherwala" wrote:

> Hi,
>
> I am trying to capture the time on the entry of the cell in column A.
> Scenario is I enter a person code in cell in A column and in B column I need
> a time stamp. I am using now(). It works for one row. but as i proceed to
> scan further all the values in column b is getting updated as i am using
> now(). I want to capture time stamp for each entry of person code in col A
> and then freeze timestamp in col b and proceed. I am trying to get something
> like,
>
> A1
> 3031
> B1
> 10:30 Pm
> A2
> 3032
> B2
> 10:35 PM
> and so on...
>
> Any pointer or help here will help me. Thanks in advance.
>
> best regards,

 
Reply With Quote
 
Khozema Sherwala
Guest
Posts: n/a
 
      5th Dec 2009
Thanks it works. I understand the range type is being used and if my cursor
is on first column then only time is populated in the next column cell values
only.

It works for my today's assignment. Thanks Phuelgod.

"Khozema Sherwala" wrote:

> Hi,
>
> I am trying to capture the time on the entry of the cell in column A.
> Scenario is I enter a person code in cell in A column and in B column I need
> a time stamp. I am using now(). It works for one row. but as i proceed to
> scan further all the values in column b is getting updated as i am using
> now(). I want to capture time stamp for each entry of person code in col A
> and then freeze timestamp in col b and proceed. I am trying to get something
> like,
>
> A1
> 3031
> B1
> 10:30 Pm
> A2
> 3032
> B2
> 10:35 PM
> and so on...
>
> Any pointer or help here will help me. Thanks in advance.
>
> best regards,

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I time/date stamp an entry in a note from a calendar entry? Sweet Microsoft Outlook Calendar 1 2nd Apr 2010 07:33 PM
Time stamp macro to capture changes from one workbook to another john_ramos01@yahoo.com Microsoft Excel Programming 1 3rd Jan 2006 06:01 AM
Capture of Date/Time Stamp funkychateau Windows XP MovieMaker 1 1st Nov 2005 08:45 PM
Entry time stamp =?Utf-8?B?U29rYW4zMw==?= Microsoft Access 4 24th Jul 2005 11:19 AM
date/time stamp during capture Nish Windows XP Video 1 18th May 2004 09:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:02 PM.