Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Time Date Stamp when range changes

Worksheet has changeable data clients input in columns W to AP.
Looking for macro to time date stamp in column V in the same row each
time the data is changed anywhere in columns W to AP. Some inputs are
freeform text and numbers, some are from dropdown list.

Most of the postings show how to have one column update the next
column over such as http://www.mcgimpsey.com/excel/
timestamp1.html#alt1

the only way i could get it to work for any changes for all columns
was to run the test for each column which starts to take time.

Seems like there should be an easier way to post the data to column V
for each row that regardless of which column generated the change
event. Possilbe to change McGimpsey's code to accomplish this task?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Time Date Stamp when range changes

One way:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count 1 Then Exit Sub
If Not Intersect(Range("W:AP"), .Cells) Is Nothing Then
On Error Resume Next
Application.EnableEvents = False
If IsEmpty(.Value) Then
.EntireRow.Cells(22).ClearContents
Else
With .EntireRow.Cells(22)
.NumberFormat = "dd mmm yyyy hh:mm:ss"
.Value = Now
End With
End If
Application.EnableEvents = True
End If
End With
End Sub


In article .com,
"PZ" wrote:

Worksheet has changeable data clients input in columns W to AP.
Looking for macro to time date stamp in column V in the same row each
time the data is changed anywhere in columns W to AP. Some inputs are
freeform text and numbers, some are from dropdown list.

Most of the postings show how to have one column update the next
column over such as http://www.mcgimpsey.com/excel/
timestamp1.html#alt1

the only way i could get it to work for any changes for all columns
was to run the test for each column which starts to take time.

Seems like there should be an easier way to post the data to column V
for each row that regardless of which column generated the change
event. Possilbe to change McGimpsey's code to accomplish this task?

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
Date-time stamp Daniel Excel Discussion (Misc queries) 3 September 7th 09 10:58 AM
TIME STAMP FOR A RANGE FARAZ QURESHI Excel Discussion (Misc queries) 4 March 27th 08 01:22 PM
Date-Time Stamp [email protected] Excel Discussion (Misc queries) 1 September 27th 06 02:37 PM
date/time stamp Jan Excel Worksheet Functions 7 July 14th 05 01:04 PM
Date time stamp Frank Kabel Excel Programming 3 March 1st 04 08:56 PM


All times are GMT +1. The time now is 07:51 AM.

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

About Us

"It's about Microsoft Excel"