Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pivot Table Format data area

Status
Not open for further replies.

BlindPete

Programmer
Jul 5, 2000
711
US
Hello All,

I have macro that creates a pivot table. It works fine, but the data area (the grid between columns and row headers) needs formating. I can do it manually, but I don't want to. I've tried a variety of methods for formating but no luck.

Can any one help me out?

Code:
' NO JOY
oExcelPivotSheet.PivotTables("PivotTable1").PivotFields("Cost").NumberFormat = "_($* #,##0_);_($* (#,##0);_($* ""-""??_);_(@_)"

-Pete
Games the old fashion way with Dice, Paper and Pencils!
 




Hi,

"I can do it manually..."

Turn on your macro recorder as you format.

Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top