Worksheet_Change event doesn't fire when VBA code writes into a cell

Andreas Killer 144K Reputation points Volunteer Moderator
2015-08-08T13:03:26+00:00

Hello,

during some tests with Excel for Mac I've found that the Change event doesn't fire if another macro changes a cell.

To reproduce this issue:

  • Make a new file
  • Add this code to the code module of the active sheet

Private Sub Worksheet_Change(ByVal Target As Range)

  MsgBox Target.Address(0, 0)

End Sub

  • Add a regular module, add this sub

Sub Test()

  Application.EnableEvents = True

  Range("A1") = 1

End Sub

  • Close the VBA editor and run Sub Test

Every Windows version of Excel triggers the Change event, but not on Mac?

Bug? Feature? Is there something on Mac that I'm missing?

Andreas.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2015-08-08T17:37:15+00:00

    No, there is nothing you are missing. It is a Mac bug reported over and over again throughout  the past 10 years or so. Microsft has apparently decided that it is not important enough to fix. You can add your 2 cents by sending feedback from the help menu. Maybe one more input will tip the scales. However, it appears to have been fixed in Excel 2016.

    3 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful