Post "Date" in one Cell when any changes occur in cells C11:F61

Christine11

New Member
Joined
Sep 9, 2019
Messages
5
I have tried to follow an answer that you gave a fellow lost excel user. :) Unfortunately I can not get it to work so I need more information. I have a worksheet that is broken down into projects (areas in the worksheet). In each section I have to have one cell that tells when anything in the combined area changed. Example: in D9 I have to show a date of the last time anything changed in area C11:F61. How do I do this? What do I type in D9 to connect to the code sheet? What do I put in the code sheet? Thank you - Christine
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi & welcome to MrExcel.
Add this to the relevant sheet module
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
   If Target.CountLarge > 1 Then Exit Sub
   If Not Intersect(Target, Range("C11:F61")) Is Nothing Then
      Range("D9").Value = Date
   End If
End Sub
Whenever you change a value in C11:F61 todays date will be put into D9
 
Upvote 0
Hi & welcome to MrExcel.
Add this to the relevant sheet module
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
   If Target.CountLarge > 1 Then Exit Sub
   If Not Intersect(Target, Range("C11:F61")) Is Nothing Then
      Range("D9").Value = Date
   End If
End Sub
Whenever you change a value in C11:F61 todays date will be put into D9


Do I type anything into D9? I added the code above into the Module1(code). I tried by changing cell D11, but no date showed up in D9. Not sure what I am doing wrong.
 
Upvote 0
It needs to go in the sheet module, not a normal module.
Right click the tab of the sheet you want it to work on > select View code > paste the code into the window that opens up.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
Is there a way to do this in more than one location on the same worksheet? I also have to do the same thing in I11:L61 with it showing up in cell J9.
 
Upvote 0
You can simply add another similar IF...THEN block, i.e.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
   If Target.CountLarge > 1 Then Exit Sub
   If Not Intersect(Target, Range("C11:F61")) Is Nothing Then
      Range("D9").Value = Date
   End If
[COLOR=#ff0000]   If Not Intersect(Target, Range("I11:L61")) Is Nothing Then
      Range("J9").Value = Date
   End If[/COLOR]
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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