D
Dee
Hi,
Below is a simple macro run to show detail of a pivot table on a required
field.
May I know what shall i do to stop the macro if the pivot table don't contain
the respective field ??
******************************************************
Worksheets("Pivot Table 1")Activate
For i = 26 To 60
If Cells(i, "u") = "Key" Then
Cells(i, "v").Select
Selection.ShowDetail = True
Exit For
End If
Next i
Thanks in advance !!
Below is a simple macro run to show detail of a pivot table on a required
field.
May I know what shall i do to stop the macro if the pivot table don't contain
the respective field ??
******************************************************
Worksheets("Pivot Table 1")Activate
For i = 26 To 60
If Cells(i, "u") = "Key" Then
Cells(i, "v").Select
Selection.ShowDetail = True
Exit For
End If
Next i
Thanks in advance !!