Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Time stamp multiple cells changes when external database autorefreshes

I have a excel worksheet that is linked to a website. Every 60 minutes
the web query refreshes. 7500 rows of data in 4 columns is updated but
not all rows have changed since the last update.I found the following
code in the group that worked fine when I manually enter a number in
the forth column but when the web query refreshes the date it does not
create a time stamp

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
Target.Offset(0, 10).Value = Now
'Or like this Format(Now, "mm/dd/yy hh:mm:ss") instead of Now
End If
End Sub

can this code be adjusted to create a time stamp when the web query
automatically refreshes every hour for only the rows that had changed
and not change the original date of the last change when the row
hasn't changed? Usually a row only changes one every 24 hours. But it
is possible that it may change more that once in 24 hours and it may
not change for more than a year. I hope that this isn't to difficult
an issue for a solution.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Time stamp multiple cells changes when external database autorefreshes

If possible I you also like to calculate the difference between the
old and the new values since the previous web query refresh. Thanks


On Jul 19, 11:23*pm, Breck wrote:
I have a excel worksheet that is linked to a website. Every 60 minutes
the web query refreshes. 7500 rows of data in 4 columns is updated but
not all rows have changed since the last update.I found the following
code in the group that worked fine when I manually enter a number in
the forth column but when the web query refreshes the date it does not
create a time stamp

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
Target.Offset(0, 10).Value = Now
'Or like this * * *Format(Now, "mm/dd/yy hh:mm:ss") instead of Now
End If
End Sub

can this code be adjusted to create a time stamp when the web query
automatically refreshes every hour for only the rows that had changed
and not change the original date of the last change when the row
hasn't changed? Usually a row only changes one every 24 hours. But it
is possible that it may change more that once in 24 hours and it may
not change for more than a year. I hope that this isn't to difficult
an issue for a solution.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Time stamp multiple cells changes when external database autorefreshes

If possible I you also like to calculate the difference between the
old and the new values since the previous web query refresh. Thanks


On Jul 19, 11:23*pm, Breck wrote:
I have a excel worksheet that is linked to a website. Every 60 minutes
the web query refreshes. 7500 rows of data in 4 columns is updated but
not all rows have changed since the last update.I found the following
code in the group that worked fine when I manually enter a number in
the forth column but when the web query refreshes the date it does not
create a time stamp

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
Target.Offset(0, 10).Value = Now
'Or like this * * *Format(Now, "mm/dd/yy hh:mm:ss") instead of Now
End If
End Sub

can this code be adjusted to create a time stamp when the web query
automatically refreshes every hour for only the rows that had changed
and not change the original date of the last change when the row
hasn't changed? Usually a row only changes one every 24 hours. But it
is possible that it may change more that once in 24 hours and it may
not change for more than a year. I hope that this isn't to difficult
an issue for a solution.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Time stamp multiple cells changes when external database autorefreshes

If possible I would also like to calculate the amount each cell
changes in column 4 since the last time it changed as the result of
the web query refresh.

On Jul 19, 11:23*pm, Breck wrote:
I have a excel worksheet that is linked to a website. Every 60 minutes
the web query refreshes. 7500 rows of data in 4 columns is updated but
not all rows have changed since the last update.I found the following
code in the group that worked fine when I manually enter a number in
the forth column but when the web query refreshes the date it does not
create a time stamp

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
Target.Offset(0, 10).Value = Now
'Or like this * * *Format(Now, "mm/dd/yy hh:mm:ss") instead of Now
End If
End Sub

can this code be adjusted to create a time stamp when the web query
automatically refreshes every hour for only the rows that had changed
and not change the original date of the last change when the row
hasn't changed? Usually a row only changes one every 24 hours. But it
is possible that it may change more that once in 24 hours and it may
not change for more than a year. I hope that this isn't to difficult
an issue for a solution.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Time stamp multiple cells changes when external database autorefreshes

If possible I would also like to calculate the amount each cell
changes in column 4 since the last time it changed as the result of
the web query refresh.

On Jul 19, 11:23*pm, Breck wrote:
I have a excel worksheet that is linked to a website. Every 60 minutes
the web query refreshes. 7500 rows of data in 4 columns is updated but
not all rows have changed since the last update.I found the following
code in the group that worked fine when I manually enter a number in
the forth column but when the web query refreshes the date it does not
create a time stamp

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
Target.Offset(0, 10).Value = Now
'Or like this * * *Format(Now, "mm/dd/yy hh:mm:ss") instead of Now
End If
End Sub

can this code be adjusted to create a time stamp when the web query
automatically refreshes every hour for only the rows that had changed
and not change the original date of the last change when the row
hasn't changed? Usually a row only changes one every 24 hours. But it
is possible that it may change more that once in 24 hours and it may
not change for more than a year. I hope that this isn't to difficult
an issue for a solution.


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
Time/Date Stamp Multiple Rows DataGuy Excel Discussion (Misc queries) 1 March 31st 09 03:45 AM
Comparing 2 files on date/time stamp, and based time difference do a subroutine [email protected] Excel Programming 1 September 28th 07 03:53 AM
Time Stamp in multiple cells Murph Excel Programming 5 May 10th 07 10:55 PM
MULTIPLE DATE/TIME stamp ruben Excel Worksheet Functions 3 May 6th 07 04:28 PM
time stamp on MULTIPLE cells by PASTING FARAZ QURESHI Excel Discussion (Misc queries) 2 January 11th 07 08:51 PM


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