script-lab icon indicating copy to clipboard operation
script-lab copied to clipboard

dataHierarchies in pivot table cannot call numberFormat function.

Open JerryXBear opened this issue 4 years ago • 2 comments

Description:

I need to know if I can change the number format in my pivot table using script lab. I tried to change the number format for my column in pivot table, doesn't work and throw an error.

by the way, I checked the number format in "Excel.DataPivotHierarchy class" document. There is no example or clear explanations to tell me how to use the property, so I log it out on my console and change the keyword from "General" to "Percentage". doesn't work.

Screenshot(s):

image

JerryXBear avatar Apr 28 '21 17:04 JerryXBear

Please share you sample data and completed code here, if the issue still there

chenxizhang avatar Sep 04 '22 14:09 chenxizhang

This is a great question for Stack Overflow with the office-js tag.

wandyezj avatar Apr 04 '24 21:04 wandyezj