PC Review


Reply
Thread Tools Rate Thread

access to xls

 
 
=?Utf-8?B?eW9naQ==?=
Guest
Posts: n/a
 
      29th Mar 2007
if i have a pivot table

how can i search multiple values by the label so that i can populate a new
spreadsheet

ex

you will notice in my 2 tables below that in my pivot table i don't have a
column b
but on my new table I do. How would i do this with code?

pivot table
a c d
a 1
b 2
c 3



new table

a b c d
a 1
b 2
c 3
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGF0YXNvcnQ=?=
Guest
Posts: n/a
 
      30th Mar 2007
I am not quite sure where you are heading with the question but I think you
should be using the the ColumnRange property of a pivottable. Below is a way
to list all the columns in the pivot table range. Note that there are title
and Pivot value rows.


Sub PrintPivotLabels


Dim c As Object

Debug.Print "There are " &
ActiveSheet.PivotTables(1).ColumnRange.Cells.Count & " Columns"

For Each c In ActiveSheet.PivotTables(1).ColumnRange
Debug.Print c.Address & ":" & c.Value
next C

End Sub

Good Luck

--
Stewart Rogers
DataSort Software, L.C.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open my Access files after conversion from Access 97 to Access 2003 M Shafaat Microsoft Access 5 10th Apr 2010 09:04 PM
Saving Access 2007 database in Access 2003 format fails in Access =?Utf-8?B?U3Bpcm8=?= Microsoft Access External Data 0 13th Aug 2006 08:37 AM
W2K3 Service w/ UNC Access, Local Disk Access, and DB Access Rob Microsoft C# .NET 6 2nd Aug 2004 01:44 PM
Access "showing images on first page only of very wide Access report. Windows XP, Access XP Jack Microsoft Access Reports 4 18th Nov 2003 03:01 PM
Re: Allowing users (w/o MS Access) to access an Access 2000 database Wayne Morgan Microsoft Access 0 29th Sep 2003 11:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:47 PM.