Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Re-Linking Pivot tables to MS Query

Advice needed: I have 2 MS Access dbs which are the data source for 2 Excel
workbooks. These workbooks contain about 30 pivot tables in each book. Each
pivot table is linked via MSQuery to an Access query. These pivot table links
are hard coded behind the scenes. How can I use VBA to re-link these PTs to
MS Query.

TIA
Johnb
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Re-Linking Pivot tables to MS Query

Look at the connection property of the the PivotCache Object. Look at what
the current value is then make the changes to that string and reassign it.
There is also a hidden SQL property that you might want to look at.

--
Regards,
Tom Ogilvy


"johnb" wrote:

Advice needed: I have 2 MS Access dbs which are the data source for 2 Excel
workbooks. These workbooks contain about 30 pivot tables in each book. Each
pivot table is linked via MSQuery to an Access query. These pivot table links
are hard coded behind the scenes. How can I use VBA to re-link these PTs to
MS Query.

TIA
Johnb

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Re-Linking Pivot tables to MS Query

Hi Tom,

Thank you for the comment. The hidden SQL property, is it found under
..CommandType = xlCmdSql ??

johnb

"Tom Ogilvy" wrote:

Look at the connection property of the the PivotCache Object. Look at what
the current value is then make the changes to that string and reassign it.
There is also a hidden SQL property that you might want to look at.

--
Regards,
Tom Ogilvy


"johnb" wrote:

Advice needed: I have 2 MS Access dbs which are the data source for 2 Excel
workbooks. These workbooks contain about 30 pivot tables in each book. Each
pivot table is linked via MSQuery to an Access query. These pivot table links
are hard coded behind the scenes. How can I use VBA to re-link these PTs to
MS Query.

TIA
Johnb

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
linking Pivot tables amydawn10 Excel Discussion (Misc queries) 0 January 4th 08 09:56 AM
Linking Pivot Tables Pete Excel Discussion (Misc queries) 0 July 5th 06 04:40 PM
Pivot Tables / Linking Worksheets p@ty Excel Programming 1 May 26th 06 04:17 PM
linking pivot tables by page fields Nelson[_9_] Excel Programming 1 March 30th 06 02:16 PM
Linking excel pivot tables [email protected] Excel Discussion (Misc queries) 1 February 24th 06 12:28 AM


All times are GMT +1. The time now is 08:14 AM.

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"