I have the following VBA code in my excel workbook:
Private Sub Worksheet_Change(ByVal Target As Range)
Target.Font.ColorIndex = 3
If Target.Column = 1 Then
Target.Interior.ColorIndex = 2
End If
End Sub
As I have found out, the undo function is lost. I have searched online and found this:
Building Undo Into an Excel VBA Macro However this will only undo the changes the last VBA code performed and not any other changes that are made without the use of VBA code in my workbook e.g. undoing a copy and paste
I have added this in the code but still no luck!
Application.OnUndo "Primary Macro", "UndoPrimary"
This is the message that appears on my mac which is a similar message to when I use my Windows7 PC