0

I'm trying to modify data in a cell range when changing the selection in a slicer. Can this be done in Excel for Mac?

braX
  • 11,506
  • 5
  • 20
  • 33
Eric Shreve
  • 119
  • 2
  • 8
  • 1
    Probably. Did you try [this](https://stackoverflow.com/questions/10800134/how-to-run-a-macro-automatically-when-the-selections-of-pivot-tables-are-changed)? – BigBen Jul 27 '20 at 16:43

1 Answers1

2

Yes, it is! As @BigBen had already mentioned, it is possible via the event Worksheet_PivotTableUpdate. This is also supported by Excel for Mac.

Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
    
End Sub

It is important that the code is defined in the corresponding sheet module

Holger
  • 320
  • 1
  • 10