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 calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,215,212
Messages
6,123,649
Members
449,111
Latest member
ghennedy

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