We get a daily Excel sheet from our Legacy system which
I am import into our Access database.
The Excel sheet has different amounts of information each day.
Sometimes the last cell is at cell H2345 sometimes it’s H1345
I currently use H10000 to get it all.
I would like to interrogate from Access VBA the last cell somehow.
Here is my code so far to import
TIA
DougP, MCP, A+
I am import into our Access database.
The Excel sheet has different amounts of information each day.
Sometimes the last cell is at cell H2345 sometimes it’s H1345
I currently use H10000 to get it all.
I would like to interrogate from Access VBA the last cell somehow.
Here is my code so far to import
Code:
Dim ExcelRange As String
Dim ExcelLocation As String
ExcelLocation = "\\Pdc1\daceasy\oe\sampdata\test\SHIPMENTS.XLS"
ExcelRange = "A5:G10000"
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "DailyShipment", ExcelLocation, True, ExcelRange
TIA
DougP, MCP, A+