View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish Debra Dalgleish is offline
external usenet poster
 
Posts: 2,979
Default Formatting Columns in Pivot Tables

Some formatting, such as inside and right borders, don't stick very
well. If you need those, you could record a macro as you apply the
formatting, then run the macro after a refresh.

For number formatting, as Jim suggested, use the Field Settings dialog box.

For other formatting, the following may help:
Right-click on a cell in the pivot table, and choose Table Options
Remove the check mark from AutoFormat table
Add a check mark to Preserve formatting
Click OK

Ensure that Enable Selection is turned on (on the PivotTable toolbar,
choose PivotTableSelectEnable Selection)

Then, click at the top of the heading for the data field you want to format
On the PivotTable toolbar, choose PivotTableSelectData
Apply your formatting.
When you refresh the pivot table, the formatting should stick.

Phil vK wrote:
I tried this with mixed results. It would only select lines in the field
that had the same title. I added a line to the bottom of those cells, and
they held thru the refresh. I tried again and added some vertical
lines.....they disappreared when I refreshed the Pivot Table. There doesn't
seem to be any way to consistently select all items in a field, format them,
and have the formatting hold.

"Jim Thomlinson" wrote:


I assume you have been using Format Cell and tehnd selecting your format. Try
this... Right click on the numbers and select Field Setting and then Number.
Select your format and all of the numbers for that field will be formatted
appropriately...
--
HTH...

Jim Thomlinson


"dmasch" wrote:


I want to have certain number formats down a column stay after a refresh but
the cell formats keep reverting back to "General". In PivotTable Options I
have AutoFormat table unchecked and Preserve formatting checked. My headers
keep their formatting but the cells below with numbers keep going back to
general with something like 9 decimal places. Any suggestions? Thanks




--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html