Solved

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

Posted on 2014-01-29
2
382 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-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dsum Function for List Box Data 7 45
Search for text in a .txt file 14 44
Calculation in Access 5 26
Obtaining Access 2013 Runtime file for Sagekey 2013 Installer 3 19
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…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

770 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