Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can't change the DB. You can get the SQL commands and copy them to a new
liked DB. To get the SQL statements and the connection you can use this macro Sub GetConnection() RowCount = 1 For Each MyQuery In ActiveSheet.QueryTables 'Set MyQuery = ActiveSheet.QueryTables.Item(1) Sheets("Sheet2").Range("A" & RowCount) = MyQuery.Connection Sheets("Sheet2").Range("A" & RowCount) = MyQuery.Sql Next MyQuery End Sub "Johan" wrote: When opening ACCESS DB from Excel I have the problem that I can't see on which DB its linked? Also I can't change de DB from Excel. Regards, Hiltjo. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating pivot table from Access database | Excel Discussion (Misc queries) | |||
Database table (aka Reverse pivot table) | Excel Discussion (Misc queries) | |||
DSUM when database is part of a pivot table | Excel Worksheet Functions | |||
Pivot Table - Database Changes | Excel Discussion (Misc queries) | |||
Pivot Table against an Access Database | Excel Discussion (Misc queries) |