Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
FA FA is offline
external usenet poster
 
Posts: 18
Default Show address of Access Database

Hello,

I have a pivot table that get its data from an Access database. I want to
show the address of the access database in a cell in the spreadsheet that has
the table.

How can I do that?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
FA FA is offline
external usenet poster
 
Posts: 18
Default Show address of Access Database

Do I need to clarify further?
Please help...

"FA" wrote:

Hello,

I have a pivot table that get its data from an Access database. I want to
show the address of the access database in a cell in the spreadsheet that has
the table.

How can I do that?

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Show address of Access Database

You sound desperate! There are utilities around to extract source data
from a pivot table. Try googling for "pivot table documenter" or
something similar - I can't remember the precise name of one I have used
previously.

Otherwise, the following in a standard module should park the source
data for PTs on the active sheet in column "A". Extract what you need
from the resulting strings.

Option Explicit
Dim i As Integer, Pvt As Object
Sub PivotSource()

If ActiveSheet.PivotTables.Count = 0 Then Exit Sub
i = 1
For Each Pvt In ActiveSheet.PivotTables
Cells(i, 1) = Pvt.SourceData
i = i + 1
Next
End Sub

Noel

FA wrote

Do I need to clarify further?
Please help...

"FA" wrote:

Hello,

I have a pivot table that get its data from an Access database. I
want to
show the address of the access database in a cell in the spreadsheet
that has
the table.

How can I do that?

Thanks!


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Show address of Access Database

Just to be on the safe side, the code I gave will of course fail if your
pivot table starts at A1 . . . but then you'd already worked that out,
hadn't you!

Noel

Ildhund wrote

You sound desperate! There are utilities around to extract source data
from a pivot table. Try googling for "pivot table documenter" or
something similar - I can't remember the precise name of one I have
used previously.

Otherwise, the following in a standard module should park the source
data for PTs on the active sheet in column "A". Extract what you need
from the resulting strings.

Option Explicit
Dim i As Integer, Pvt As Object
Sub PivotSource()

If ActiveSheet.PivotTables.Count = 0 Then Exit Sub
i = 1
For Each Pvt In ActiveSheet.PivotTables
Cells(i, 1) = Pvt.SourceData
i = i + 1
Next
End Sub

Noel

FA wrote

Do I need to clarify further?
Please help...

"FA" wrote:

Hello,

I have a pivot table that get its data from an Access database. I
want to
show the address of the access database in a cell in the spreadsheet
that has
the table.

How can I do that?

Thanks!



  #5   Report Post  
Posted to microsoft.public.excel.misc
FA FA is offline
external usenet poster
 
Posts: 18
Default Show address of Access Database

Thanks Noel.
I coppied the code in the MVB window but do not know how to make it run.
Any suggestions?

Thanks FA


"Ildhund" wrote:

Just to be on the safe side, the code I gave will of course fail if your
pivot table starts at A1 . . . but then you'd already worked that out,
hadn't you!

Noel

Ildhund wrote

You sound desperate! There are utilities around to extract source data
from a pivot table. Try googling for "pivot table documenter" or
something similar - I can't remember the precise name of one I have
used previously.

Otherwise, the following in a standard module should park the source
data for PTs on the active sheet in column "A". Extract what you need
from the resulting strings.

Option Explicit
Dim i As Integer, Pvt As Object
Sub PivotSource()

If ActiveSheet.PivotTables.Count = 0 Then Exit Sub
i = 1
For Each Pvt In ActiveSheet.PivotTables
Cells(i, 1) = Pvt.SourceData
i = i + 1
Next
End Sub

Noel

FA wrote

Do I need to clarify further?
Please help...

"FA" wrote:

Hello,

I have a pivot table that get its data from an Access database. I
want to
show the address of the access database in a cell in the spreadsheet
that has
the table.

How can I do that?

Thanks!






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Show address of Access Database

On the sheet where your pivot table is, type Alt+F8, select
"PivotSource" in the window and click "Run" (or whatever the top button
on the right is called in your flavour of Excel).

Noel

FA wrote

Thanks Noel.
I coppied the code in the MVB window but do not know how to make it
run.
Any suggestions?

Thanks FA


"Ildhund" wrote:

Just to be on the safe side, the code I gave will of course fail if
your
pivot table starts at A1 . . . but then you'd already worked that
out,
hadn't you!

Noel

Ildhund wrote

You sound desperate! There are utilities around to extract source
data
from a pivot table. Try googling for "pivot table documenter" or
something similar - I can't remember the precise name of one I have
used previously.

Otherwise, the following in a standard module should park the
source
data for PTs on the active sheet in column "A". Extract what you
need
from the resulting strings.

Option Explicit
Dim i As Integer, Pvt As Object
Sub PivotSource()

If ActiveSheet.PivotTables.Count = 0 Then Exit Sub
i = 1
For Each Pvt In ActiveSheet.PivotTables
Cells(i, 1) = Pvt.SourceData
i = i + 1
Next
End Sub

Noel

FA wrote

Do I need to clarify further?
Please help...

"FA" wrote:

Hello,

I have a pivot table that get its data from an Access database.
I
want to
show the address of the access database in a cell in the
spreadsheet
that has
the table.

How can I do that?

Thanks!




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
access database (adodb)from excel vba AskExcel Excel Worksheet Functions 0 July 17th 06 02:01 AM
connect to access database and run a query in excel VBA Bob Excel Discussion (Misc queries) 0 April 25th 06 08:12 PM
Convert MS Excel data to MS Access database HelpJim Excel Worksheet Functions 6 January 2nd 06 03:51 PM
Using Access database to "populate" Excel Sheets maacmaac Excel Discussion (Misc queries) 1 September 19th 05 05:06 PM
Code to 'lookup' value in Access database maacmaac Excel Discussion (Misc queries) 0 September 16th 05 02:52 AM


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