Solved

In excel create a connection to another excel workbook

Posted on 2013-05-22
3
434 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
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert SuperCalc files to Excel 9 45
Batch Numbering 6 30
Turn date into age 17 32
Stop display of alerts in Word via Excel 12 18
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

856 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