Date cell changed (cell referencing another workbook)

cdub76

New Member
Joined
Jan 13, 2011
Messages
2
I found code here (that I modified) that returns the date a cell was last modified (in another cell two rows down), but it only works if you manually change the value of the cell. Here is the code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Range("I6:I7,J6:J7"), Target) Is Nothing Then
Exit Sub
End If
Application.EnableEvents = False
Target.Offset(2, 0).Value = Now()
Application.EnableEvents = True
End Sub

What I need is code that will do the same thing (8 rows down in this case), but works when the cell is referencing a completely different workbook and updates when a new version of the file is saved to the folder. I tried the code above, and it only works if you manually change the value of a cell (not when it is automatically updated).

Any ideas?

I have 16 different cells I need to do this for (in addition to the 2 that are manually updated in the worksheet). It appears you can have only one Private Sub Worksheet_Change(ByVal Target As Range) entry in the worksheet code, so I need code that will handle all 18 cells that can be changed.

* NOTE: This is a dashboard that is calculating various metrics based on data from other workbooks that are saved over the existing version in a folder that comes in via email monthly from different sources.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,215,375
Messages
6,124,580
Members
449,174
Latest member
chandan4057

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