Working with this:
So that for each field in a pivot table, if the pivot field name contains "Rate" it will format as a percent, otherwise a number.
The code runs correctly without any stops or errors, but the resulting chart still shows values as a number format. Any suggestions?
Thanks
Code:
For Each pvtFld In Pvt.DataFields
If pvtFld.Name = "*Rate*" Then
pvtFld.NumberFormat = "%0.00"
Else: pvtFld.NumberFormat = "#,##0"
End If
Next pvtFld
The code runs correctly without any stops or errors, but the resulting chart still shows values as a number format. Any suggestions?
Thanks