var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: transfer from excel
how could i get this line:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97, "tblmain", "G:\INDY\STATUS.xls", True, "OPEN!"
to import from a specific range on my worksheet named 'OPEN'? I have a few lines at the top of the worksheet that i do not want to transfer into Access. So i need the transfer to go from cell A5 to the end of the data on the screen. How could i do that?
the data changes daily so typing a static range (like "INV!A5:N212") in the range option would not work.
Direct from the help file:
DoCmd.TransferSpreadsheet [transfertype][, spreadsheettype], tablename, filename[, hasfieldnames] [, range]
Unless you mean you have a varying number of cells to copy, that's pretty damn tricky. For that, you may have to use the excel object library again.
yeah- i will have varying number of cells... Not sure how i should approach this thing. Any suggestions would help.
Open the sheet as an object then and iterate through it as though it were a dataset. I believe there were some suggestions about how to interact with a spreadsheet directly in the last excel thread.