I have an Excel workbook that has multiple sheets.
There is a Master sheet where all the changes will be made.
The other sheets are Branches of the master that have linked cells to the master.
I know how to implement a worksheet_change to change the interior color of a cell when it is manually changed.
Is there a way to implement that same color change across all non-manually changed cells within the workbook?
Let's say cell A1 in sheet 1 has the word 'Hello'.
I want cell B2 in sheet 2 to have whatever cell A1 in sheet 1 has. Therefore cell B1 in sheet 2 would also have the word 'Hello'.
Now, let's say I change cell A1 in sheet 1 to 'Goodbye'
- I want cell A1 in sheet 1 to highlight in a light green color.
- I then want cell B2 in sheet 2 to say 'Goodbye' (which it will already do since it is linked to cell A1 in sheet 1) but more importantly, highlight cell b1 in that same light green color.
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Target.Interior.Color = RGB(216, 228, 188)
End Sub
This is what I use to change the color of a cell if it was changed on the master sheet. It does work, but just for that sheet.
I want to fill the background of all cells that were changed across the workbook.