Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Format PivotTable from VBA out of MS Access

Hi,
I have created different functions which move certain data from MS Access to
Excel in an PivotTable and PivotChart. The PivotChart formatting works,
however I try now to format the PivotTable itself but it always fails - or at
lesast I don't know what to do exactly. I use version 2002.
Here some samples:

With xlAPP.ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "Title"
End With

Setup of Pivot Table:
With xlAPP.ActiveSheet.PivotTables("PivotIndex")
.PivotFields("Category").Orientation = xlRowField
.PivotFields("Series").Orientation = xlColumnField
.ColumnGrand = False
.RowGrand = False
End With

With xlAPP.ActiveSheet.PivotTables("PivotIndex").PivotF ields("ChartValue")
.Orientation = xlDataField
.Function = xlSum
.Position = 1
End With

However the same for the PivotTable seems not to work: (as mentioned I like
to format the font, size, etc...)

xlAPP.ActiveSheet.PivotTables("PivotIndex").PivotF ields("Series").Font.Name
= "HelveticaNeueLT Std Cn"





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
How to remove PivotTable format. MichaelRobert Excel Worksheet Functions 3 February 13th 09 02:21 PM
Getting rid of PivotTable format MichaelRobert Excel Worksheet Functions 1 February 12th 09 06:17 PM
Format PivotTable PeterM Excel Discussion (Misc queries) 1 August 13th 08 05:43 PM
I NEED TO KNOW THE SOURCE OF A PIVOTTABLE FROM ACCESS FORMULA Excel Discussion (Misc queries) 0 July 20th 06 05:27 PM
Create Excel PivotTable that uses Access query as external data so alexhatzisavas Excel Programming 0 August 30th 05 08:06 AM


All times are GMT +1. The time now is 12:50 AM.

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

About Us

"It's about Microsoft Excel"