VBA for the last modified date of a row

av47ar

New Member
Joined
Dec 18, 2018
Messages
2
Hi,

Been scratching my head at this all day, fairly new at understanding code for excel as well.

I have a sheet I use for production , a little conditional formatting for a simple RAD (red amber green) status using 1 2 3 in each cell (see attached imgur pic) https://imgur.com/5a95wjS

What I'd like to do is be able to see the last modified date for that row for reporting purposes, tried a few formulas directly in the page and they worked for a while, suddenly stopped but I think they were tracking any changes on the page.

Any suggestions/work arounds are welcome and really appreciated.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
after some fiddling im usingthis code:

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Cells(Target.Row, "AI").Value = Now()
Application.EnableEvents = True

It's monitoring all cells, is there a way to limit it to A2:Z2 and each row down to A24:Z24 (am i right saying the range of A2:Z24??)

Im using an activex button to copy some info from the first two cells to another sheet for tracking purposes and then clear its contents and fill colour. When i double click this it updates the last modified cell date as thats what the button is doing. Is there a way to have the last modified date cell to clear itself when the cells have been cleared?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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