I am trying to figure out how to track changes in a new workbook that is generated from VBA. The document generates a new document and I do not want to have to add the following logic in each new workbook. Is there a way to place it in the VBA Code that generates the document so that if a change is made in the new document, it highlights the change.
'UpdatebyExtendoffice20180307
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Value <> "" Then
Target.Interior.ColorIndex = 6
End If
End Sub
'UpdatebyExtendoffice20180307
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Value <> "" Then
Target.Interior.ColorIndex = 6
End If
End Sub