Highlight changes every where

ahmedmirza

New Member
Joined
Dec 2, 2006
Messages
42
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Dears, Is there a way of having changes tracked for example if I delete the contents of a cell A5, the cell itself and all those dependants should be colored PINK. Thanks
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
The Track Changes function in excel just puts a comment and only on the cell changed not on the dependants...

Looking for more replies
 
Upvote 0
Okay, I lied slightly. Right click the worksheet and go to 'View Code':

Code:
Dim LastFormula As String

Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Formula <> LastFormula Then
        Target.DirectDependents.Interior.ColorIndex = 26
    End If
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    LastFormula = Target.Formula
End Sub

If you want the dependents of dependents, then switch 'DirectDependents' to 'Dependents'
 
Upvote 0
Thank you very much

This did work, for some reason, when i was trying to undo the change, I couldnt....
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,399
Members
448,958
Latest member
Hat4Life

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