ianb
Member
Hi,
I have a dashboard that updates upon opening.
I also have in a sheet a program that I would like to run only if a list box is chnaged to Yes else No it will just exit sub.
Can you advise on the changes please for this to work.
Private Sub Worksheet_PivotTableUpdate(ByVal target As PivotTable)
Dim Source As Range
Set Source = Range("G101")
If Source Is Nothing Then
Exit Sub
Else
SyncPivotFields2 target
End If
End Sub
Thanks.
I have a dashboard that updates upon opening.
I also have in a sheet a program that I would like to run only if a list box is chnaged to Yes else No it will just exit sub.
Can you advise on the changes please for this to work.
Private Sub Worksheet_PivotTableUpdate(ByVal target As PivotTable)
Dim Source As Range
Set Source = Range("G101")
If Source Is Nothing Then
Exit Sub
Else
SyncPivotFields2 target
End If
End Sub
Thanks.