Solved

In excel create a connection to another excel workbook

Posted on 2013-05-22
3
454 Views
Last Modified: 2013-05-23
I have a spreadsheet that gets some data from another excel workbook. It works fine, except if there are new, additional columns in the source workbook, they are ignored, don't show up in spreadsheet using the connection. It seems like the connection is somehow remembering all the column names and will only import those, even though the sql is like select * from ....

If there are fewer columns in the source workbook, then the missing columns (headers) will show up like Column1, Column2, etc, but, of course, no data in these columns.

Any ideas on how to make the table expand / shrink with the source?

thanks
Alan

excel 2010, 32 bit, on a windows 7 64 bit box.
connection looks like (points to a sharepoint folder):
DSN=Excel Files;DBQ=\\network\DavWWWRoot\SiteDirectory\path\VWProductSpendData.xlsx;DefaultDir=\\network\DavWWWRoot\SiteDirectory\path\;DriverId=1046;MaxBufferSize=2048;PageTimeout=5;
Command type: SQL
Command text like:
SELECT *
FROM `\\network\DavWWWRoot\SiteDirectory\path\VWProductSpendData.xlsx`.qryVWProductSpend qryVWProductSpend

connection was create from within excel using "From Other Sources", selecting Excel Files*
0
Comment
Question by:avoorheis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 39190150
Right-click the table, choose "External Data Properties", and uncheck the "Preserve column sort/filter/layout" option.

HTH
Rory
0
 

Author Comment

by:avoorheis
ID: 39190943
hmmm, I don't remember exactly how I created this, but, it's not a table (which is a bit odd for me, cause I think I normally end up with a table when using a data connection).
Anyhow, I thought I had already unchecked that, but, now that I'm looking at it again, that option is grayed out.
Let me go through the creation process again and I'll report back.
0
 

Author Comment

by:avoorheis
ID: 39191305
I guess that's the issue. I actually did the import from a text file instead of a spreadsheet and has less control of the columns.

thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question