Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default programatically change the data source of Pivots

Hi there

I was just wondering whether it is possible to refresh or relink the data
source of a pivot table programatically?

Example - Sheet 1 has 1 pivot table source: c:\mydb.mdb
Can i write some code to change the datasource of
Sheet 1 pivot table to h:\new location\sub folder\another sub\on a diff
drive\mydb.mdb

cheers
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default programatically change the data source of Pivots

see the macro at the bottom of article written by Harald Staff
Introduction To Pivot Tables
http://www.cpearson.com/excel/pivots.htm

You can find additional information on Pivot Tables on Debra Dalgleish's site
I think there is also a macro there to update Pivot Tables.
http://www.contextures.com/tiptech.html

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Help me" wrote in message ...
Hi there

I was just wondering whether it is possible to refresh or relink the data
source of a pivot table programatically?

Example - Sheet 1 has 1 pivot table source: c:\mydb.mdb
Can i write some code to change the datasource of
Sheet 1 pivot table to h:\new location\sub folder\another sub\on a diff
drive\mydb.mdb

cheers



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 change the data source derwood[_2_] Excel Discussion (Misc queries) 2 December 27th 07 04:12 PM
Same Data source for Multiple Pivots anandmr65 Excel Discussion (Misc queries) 3 July 7th 06 12:47 PM
Anyone help with this error in changing data source of pivots Job Excel Programming 3 November 2nd 05 01:13 AM
I would like to build macro's to do pivots or part of pivots Todd F.[_2_] Excel Programming 2 July 29th 05 03:59 PM
Pivots using other pivots and dynamic query problem lc Excel Programming 0 November 7th 03 03:02 PM


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