M
mph999
I need VBA to format Data in a pivot, but not include the name of th
pivot.
I use many pivots and want to format the data as £000, or £n.
In each sheet with a pivot, I have 2 commandbuttons calling VBA t
format the Data. The command buttons are in each sheet with a pivot.
The code is:
ActiveSheet.PivotTables("PivotName22").PivotSelect "", xlDataOnly
True
Selection.NumberFormat = "#,###, ;[Red](#,###,);- "
End Sub
This code is specific to A pivot and I want to use the same comman
button + VBA combination for ANY pivot.
Problem = I can't re-write the above VBA so it can be used in AN
pivot.
Thanks in anticipation
pivot.
I use many pivots and want to format the data as £000, or £n.
In each sheet with a pivot, I have 2 commandbuttons calling VBA t
format the Data. The command buttons are in each sheet with a pivot.
The code is:
ActiveSheet.PivotTables("PivotName22").PivotSelect "", xlDataOnly
True
Selection.NumberFormat = "#,###, ;[Red](#,###,);- "
End Sub
This code is specific to A pivot and I want to use the same comman
button + VBA combination for ANY pivot.
Problem = I can't re-write the above VBA so it can be used in AN
pivot.
Thanks in anticipation