Is there a way to automate a process to import an excel spreadsheet without the first and last couple of rows into Access?
Import Excel File without Specific Rows
Collapse
X
-
If you do it through VBA you can specify the range to import. Is it always the same rows/range you are importing? -
-
Would depend on the specific situation. One way could be to import it all, then delete the offending rows.
Another approach could be to open an excel application via VBA (can be hidden from user), open the sheet, and programmaticall y set/check the range, provided you have something that computer logic can use to determine the range. Would have to see an example to help you with that.Comment
-
Essentially no. There are ways around it, but they're cumbersome. This was the point of the question in post #2 of course.Comment
-
You can open the excel sheet, and make a named range, and have the transferspreads heet function always import the named range.Comment
-
For a Range parameter, you either need to know that the range is named, and use that, or you need to be able to specify the range in one of the standard formats, "A1:B2" or "R1C1:R2C2" . Clearly you could specify a range that missed the top X rows, but that would leave you required to specify which row to go down to too. You could mix this with an earlier suggestion, to import line X+1 to 65,536, and then delete all records with no data, but without access to the Excel file itself, and with no prior knowledge as to how many lines are there, you will not be in a position to specify a meaningful range.Comment
Comment