Is it possible to intercept the double-click on a pivot table, prevent it from showing the underlying data, so that you can provide a structured screen as you wish the viewer to see it?
Try this.
LOGIC:
Worksheet_BeforeDoubleClick
event check if the user clicked in the PivotCODE: This code goes in the worksheet code area which has the pivot (See screenshot)
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim rng As Range
'~~> This is your pivot table range. Change as applicable
Set rng = Range("A1:D10")
'~~> Check if the double click happend in the Pivot
If Not Intersect(Target, rng) Is Nothing Then
'~~> Cancel Double click
Cancel = True
End If
End Sub
SCREENSHOT:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With