LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Adding data to the pivot table datasource

Using ms query sounds like a good idea (I assume all your data is in an
external database).

See this article:

http://support.microsoft.com/?kbid=157488
XL97: Using Server Page Fields in PivotTables


otherwise, for data in your worksheets, you might use dynamic names

Insert =Name = define

Name: Table1
RefersTo: =Offset(Sheet1!$A$1,0,0,CountA(Sheet1!$A$A),10)

then click add

now, in your pivot table, make the source the name Table1

--
Regards,
Tom Ogilvy


"Tony White" wrote in message
...
Hello
I have pivot tables that use data i import from Access. Each month the
import is larger and I have to go through each pivot table and change the
datarange. Is there a way to do this in VBA? There are 50 pivot tables on
this sheet.
Also I use MS Query to pull data from a smaller table in the same database
instead of exporting/importing. Would it be smarter/more efficient to use
this method in the case above? Can MS Query be controlled?
Thanks for your help!



 
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
Pivot Table with MS Access as DataSource PiB311 Excel Discussion (Misc queries) 1 June 2nd 10 08:48 PM
determine in datasource or pivot table rodchar Excel Discussion (Misc queries) 0 March 23rd 09 05:34 PM
Pivot Tables -changing datasource for exsting Pivot Table kfschaefer Setting up and Configuration of Excel 0 May 30th 06 06:36 PM
Pivot Table - identifying datasource halemweg Excel Discussion (Misc queries) 1 July 1st 05 07:03 PM
Pivot Table Datasource Charles Excel Programming 1 May 11th 04 12:48 PM


All times are GMT +1. The time now is 10:48 PM.

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

About Us

"It's about Microsoft Excel"