Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default excel pivot table linked to external source

I have an excel pivot table which has a live link to an external source
(an Access database). How can you tell to which access table the pivot
table is linked? Is there a place in the pivot table where this info
could be found?

Thanks.

Marina



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default excel pivot table linked to external source


if your programming:
it's stored via the connection property of the pivotcache

for manual editing :
select a cell inside the pivottable
rightclick
select Wizard
the wizard will show Page3 of 3
select the "Back" button

by clicking the GetData button on Page2 of 2
you can rerun the query (with an option)
to edit it in MsQuery..
THEN in SQL mode you can see the table..

complicated isn't it?


thus .. try following macro..

Sub ShowPivotConnection()
Dim pt As PivotTable

On Error Resume Next
Set pt = ActiveCell.PivotTable
On Error GoTo 0
If pt Is Nothing Then
MsgBox "No PT selected"
Else
MsgBox Replace(pt.PivotCache.Connection, ";", vbNewLine)
End If
End Sub





--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam

marina madeleine wrote in message
:

I have an excel pivot table which has a live link to an external

source
(an Access database). How can you tell to which access table the

pivot
table is linked? Is there a place in the pivot table where this info
could be found?

Thanks.

Marina



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default excel pivot table linked to external source

Thank you, KeepItCool!

Marina



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default excel pivot table linked to external source

keepITcool wrote ...

edit it in MsQuery..
THEN in SQL mode you can see the table..


I tried this myself and the text in the SQL window was as follows:

{Call MyStoredProc('2001-01-01', '2004-01-01')}

Do I now have to query a system table? Something like:

Dim oConn As Object
Dim oRs As Object

Set oConn = CreateObject("ADODB.Connection")
With oConn
.CursorLocation = 3 ' adUseClient
.ConnectionString = CONN_STRING
.Open

' adSchemaProcedures
Set oRs = .OpenSchema(16, _
Array(Empty, Empty, "MyStoredProc", Empty))

oRs.ActiveConnection = Nothing
.Close

End With

MsgBox oRs!PROCEDURE_DEFINITION

complicated isn't it?


Things aren't always straightforward <g.

Jamie.

--
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
Can a pivot table be redirected to an external source? KarenK Excel Worksheet Functions 2 May 14th 10 08:52 PM
View pivot table external data source in Excel 2007 Marc Forget Excel Discussion (Misc queries) 4 January 10th 08 08:05 PM
Pivot Table Data Source external excel file IH Excel Discussion (Misc queries) 4 November 4th 06 02:42 AM
group pivot table from external source scottwilsonx[_60_] Excel Programming 1 October 25th 04 10:43 AM
Excel Pivot Table Template thinks it's linked to external data Tom Excel Programming 0 May 18th 04 04:36 AM


All times are GMT +1. The time now is 09:45 AM.

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"