Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Pivot table....building arguments for the .RowField property

I am trying to write a generic Pivot Table build subroutine. To do that, I want to pass it things like the Table name, the Pivot Fields, Row Fields, Column Fields etc. Here's my problem. The current statement is as follows

ActiveSheet.PivotTables(MyTableName).AddFields RowFields:=Array("Status", "Fix-It Owner"

What I want to do, is build a string to pass to this routine, that will contain the value

"Array("Status", "Fix-It Owner") etc. So the first 'quote' in that string needs to not be there, the 'quotes' around Status and Fix-It Owner NEED To be there etc. I can certainly build the string ok and place it in a variable, but when I USE that variable after the RowFields:= I just get an error. Any ideas

Here's how I want it to loo

RowFields:=MyRowFields .... where MyRowFields is a string I build based on the user inpu

Steve
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
Building a rank table using If Mifty Excel Discussion (Misc queries) 2 November 14th 07 08:52 PM
Compile Error: Wrong arguments or Invalid property Brent E Excel Discussion (Misc queries) 3 May 1st 07 07:11 PM
Excel Pivot Table, Property Fields Jim Plant Excel Discussion (Misc queries) 0 February 27th 07 02:59 PM
Building Pivot table from Access data newbie Excel Discussion (Misc queries) 1 July 31st 06 12:23 PM
Building a table with formulas rather than a macro Daniel Bonallack Excel Worksheet Functions 3 January 20th 05 08:55 PM


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