Date & Time of updating data

StevenD

Active Member
Joined
Nov 17, 2004
Messages
262
Hi,

I import data every minute from a text file.

What i want to be able to do is.

When the data is updated, to put a date & time next to the last row in column m.

Hope this makes sense.

Thanks

Steve
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
It is automated.

I have cracked it as far as putting the date & time.

I think it is sorted now, I will post the code once I have verified that it is fully functional.

Thanks

Steve
 
Upvote 0
As Promised here is the code I used.

This puts the time and date of sheet update in column m of the last row updated.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)

mynextblank1=sheets("Data").range("a65536").End(xlUp).Row
If Range ("m" & my nextblank1) ="" Then
Sheets("Data").Range("m" & mynextblank1)=Now
End if

End Sub

Thanks

Steve
 
Upvote 0

Forum statistics

Threads
1,203,064
Messages
6,053,320
Members
444,653
Latest member
Curdood

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top