Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pivot Table Borders

Hi.. Perhaps is an easy question, but i can't so it.... How can i make inner
borders for the data displayed in a pivot table??

I have like 20 column titles and 50 row titles, and is difficult for users
to follow up data....

When i do the borders, on next update they are gone...

Perhaps i can trap the refresh methos of the table on code to assign a
fomatting?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Pivot Table Borders

Hi Andrew,

Hi.. Perhaps is an easy question, but i can't so it.... How can i make

inner
borders for the data displayed in a pivot table??

I have like 20 column titles and 50 row titles, and is difficult for users
to follow up data....

When i do the borders, on next update they are gone...

Perhaps i can trap the refresh methos of the table on code to assign a
fomatting?


Put this in the sheet code.
Because it runs on the sheet calculate event, it will run when the
pivot table is refreshed. However, be careful because if you have
formulas that reference the pivot table, the code may run more than
once. It may be better to run this sort of code from a button.

Private Sub Worksheet_Calculate()
Dim pvt As PivotTable
' this formats all pivot tables on the active sheet
' with a double line outside border and a single
' line inside border

For Each pvt In ActiveSheet.PivotTables
With pvt.TableRange2
With .Borders
.LineStyle = xlContinuous
.LineStyle = xlDouble
End With
With .Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlThin
End With
With .Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlThin
End With
End With
Next pvt
End Sub

--
Ed Ferrero
http://edferrero.m6.net


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2000 PIvot Table Borders LPS Excel Discussion (Misc queries) 1 March 31st 08 11:07 PM
Borders in Pivot Tables DeeJay Charts and Charting in Excel 1 October 11th 06 08:47 AM
how to print a table with borders gazmac1 New Users to Excel 2 June 11th 06 10:12 PM
Pivot table borders Suresh Setting up and Configuration of Excel 4 December 19th 05 09:12 PM
customizing the borders in my table Vanilla New Users to Excel 2 November 22nd 05 12:14 AM


All times are GMT +1. The time now is 03:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"