VBA: Automatic date update when other cells change?

ineedhelp37

New Member
Joined
Jul 30, 2015
Messages
9
Hi,

I am trying to find out a way to automatically insert the date in column H, when anything in columns A:G is modified (when in the same row). For example if I modify E3, I want the current time to automatically put in H3. The sheet is called "Master List". I tried looking at some of the other VBA posts, but they did not seem to work for this. I am somewhat new to VBA and am trying to learn!

Thanks so much:)
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Paste the below code into the VBA module for the sheet in question:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <= 7 Then Cells(Target.Row, 8) = Now
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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