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

I am trying to use the getpivotable function within VBA but am unable to do
so..

Tried to use the following

application.worksheet.getpivottable

I get an error. I am able to use getpivottabledata within a worksheet as a
formula no problem..

Basically I am attempting to obtain summary information from a pivot table
and automating it within a Macro..


Regards,

Ray Pathak
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Getpivottable function

GetPivotData is a method of the PivotTable, and there's an example in
Excel VBA help:

'================
Sub UseGetPivotData()

Dim rngTableItem As Range

' Get PivotData for the quantity of chairs in the warehouse.
Set rngTableItem = ActiveCell. _
PivotTable.GetPivotData("Quantity", "Warehouse", "Chairs")

MsgBox "The quantity of chairs in the warehouse is: " _
& rngTableItem.Value

End Sub
'=====================

Raypat wrote:
I am trying to use the getpivotable function within VBA but am unable to do
so..

Tried to use the following

application.worksheet.getpivottable

I get an error. I am able to use getpivottabledata within a worksheet as a
formula no problem..

Basically I am attempting to obtain summary information from a pivot table
and automating it within a Macro..


Regards,

Ray Pathak



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

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 do i do a getpivottable jenmc073 New Users to Excel 1 May 4th 07 11:02 AM
getpivottable function? cdi Excel Worksheet Functions 1 September 26th 06 10:27 PM
Can i pull text with a Getpivottable formula? Jonathan Excel Worksheet Functions 0 September 14th 06 08:39 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Excel - User Defined Function Error: This function takes no argume BruceInCalgary Excel Programming 3 August 23rd 06 08:53 PM


All times are GMT +1. The time now is 01:14 PM.

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"