Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Pivot Table Range Address, Row & Column numbers

VBA rookie here. I tried checking F1 & F2 for Help but cannot catch its
explanations for Pivot Table.

I'm stuck coz VBA does not seem to automatically list its members after the
priod.
"ActiveSheet.PivotTables(1).[no auto listing of members]"?

I tried:
"ActiveSheet.PivotTables(1).PivotFields(6).Dataran ge.Column" and ".Row". So
I found the address for the 1st cell of the ActiveSheet.PivotTables(1).

How can I get VBA to return:
(a) the last cell's address (or row or column) of ActiveSheet.PivotTables(1)
(b) the entire used range address of ActiveSheet.PivotTables(1)

Thanks a lot.
--
Edmund
(Using Excel XP)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default Pivot Table Range Address, Row & Column numbers

Edmund

You can always get members if you set the object to a variable, e.g

Sub GetMembers
Dim pvt as PivotTable
Set pvt = Worksheets(1).PivotTables(1)
pvt.[now members WILL list]
End Sub

I suspect you are looking for the TableRange1 or Table Range2 properties

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England

HIS
www.nickhodge.co.uk

"Edmund" wrote in message
...
VBA rookie here. I tried checking F1 & F2 for Help but cannot catch its
explanations for Pivot Table.

I'm stuck coz VBA does not seem to automatically list its members after
the
priod.
"ActiveSheet.PivotTables(1).[no auto listing of members]"?

I tried:
"ActiveSheet.PivotTables(1).PivotFields(6).Dataran ge.Column" and ".Row".
So
I found the address for the 1st cell of the ActiveSheet.PivotTables(1).

How can I get VBA to return:
(a) the last cell's address (or row or column) of
ActiveSheet.PivotTables(1)
(b) the entire used range address of ActiveSheet.PivotTables(1)

Thanks a lot.
--
Edmund
(Using Excel XP)



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
Divide 2 pivot table numbers DANM Excel Worksheet Functions 4 May 1st 23 07:43 PM
HOW TO CHAGE COLUMN ADDRESS FROM NUMBERS TO ALPHABETS koneru Excel Discussion (Misc queries) 2 January 9th 08 05:06 PM
rounding off numbers gives an E in pivot table sidm via OfficeKB.com Excel Discussion (Misc queries) 0 November 29th 07 06:41 PM
Pivot Table formatting numbers Jock Excel Worksheet Functions 2 August 10th 07 04:30 PM
Constructing range address given row and col numbers of boundaries [email protected] Excel Worksheet Functions 4 November 16th 05 04:23 PM


All times are GMT +1. The time now is 02:22 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"