Solved

Excel Linking - how to keep the column headings if they aren't on the first row?

Posted on 2014-01-29
2
383 Views
Last Modified: 2014-01-29
Hello - I've got a situation where I've got to get the rows from some HUGE Excel 2010 spreadsheets (200K+ rows) into Access tables, so I'm trying to link to them, rather than import.

Most of these workbooks have multiple worksheets, with report headings and dates in the first several rows. Right now, I'm specifying a range that is just the tab name.

When I link with "First row contains field names" = False, field names come across as "F1", "F2", etc...

Is there a  slick trick for applying the values in, say, the 6th row as field names?

Thanks
0
Comment
Question by:mlagrange
2 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 39817457
I generally use code to open the spreadsheet, delete the first 5 rows, then save the spreadsheet with a different name (so you don't destroy the original).

Then I Link to the new spreadsheet and the Column headers show up the way I want.
0
 

Author Closing Comment

by:mlagrange
ID: 39818602
That's a great idea - Thanks
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

830 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