Hi, I'm looking for hep with a macro to:
1. record in Column B the date the value of a cell in column A was last changed
2. record in Column C the number of times the value of a cell in column A has been changed
Thanks
Hi, I'm looking for hep with a macro to:
1. record in Column B the date the value of a cell in column A was last changed
2. record in Column C the number of times the value of a cell in column A has been changed
Thanks
Copy the below code and do right click on sheet tab and select view code and paste it.
Close the VBA window (Alt+Q to close VBA window) and return to that sheet and check.
Please Login or Register to view this content.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
Thanks for your help, works perfectly
Cheers
One more question, if I want to do the same thing for changes made to column E recorded in columns F and G what do I need to do to the macro? Ie. I would like to track changes to column A in columns B & C, and track changes to column E in columns F and G
.Offset(Row,Column)
We don't need any offsetting for row so I ignored the row part with blank and used only the column part in my code which is given below.
Column-B is the Next column of Column-A so only one column offset is enough so used the first line of code .Offset(, 1).Value for entering the date.Please Login or Register to view this content.
Column-C is the Second column of Column-A so two column offset is enough so used the second line of code .Offset(, 2).Value for counting the changes.
So make changes in the offset for adjusting the code
Hope that clear
Sorry I meant I wasn't sure what to do to track the changes made to two columns, A & E. Ie
Record information about changes to A in B & C - as you have solved above
&
Record information about changes to E in F & G
Hope that makes sense
Sorry I have no idea how to write code!
Replace the previous code with the below one and check
Please Login or Register to view this content.
That works perfectly, thanks again!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks