Is there a way to import multiple excel spreadsheets into one Table instead of having to do every single one at a time??? Or import multiple spreadsheets into one Excel spreadsheet atthe same time??? please help!!
try creating a button on a form.<br>in the OnClick Property of the button, go into the Code Builder and put this code with modifications to fit your application:<br><b><br>DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97, "YourTableName", "FirstSpreadsheetName"<br>DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97, "YourTableName", "SecondSpreadsheetName"<br></b><br><br>you can do as many as you want (i believe), just make sure you put the path and file name of each spreadsheet in the expression, and the Access table name in. i haven't tested this, but it should work for you. <p>Brian Famous<br><a href=mailto:bfamous@ncdoi.net>bfamous@ncdoi.net</a><br><a href= > </a><br>
i believe if you put a ",1" after the end of each command line it will eliminate headings.<br>like:<br><b><br>DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel97, "YourTableName", "FirstSpreadsheetName",1<br></b><br><br>i'll double-check, if i don't repost, this is correct.<br> <p>Brian Famous<br><a href=mailto:bfamous@ncdoi.net>bfamous@ncdoi.net</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.