Solved

In excel create a connection to another excel workbook

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
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…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

751 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