Import whole folder using TransferSpreadsheet (1 Viewer)

USMCFROSTY

Registered User.
Local time
Today, 02:42
Joined
Mar 5, 2007
Messages
64
The code below works fine but how can i import all .xls within the folder. Can i rename the .xls to .xls1, .xls2, ect... then import the folder? How would i change the code to id them all then import?

Private Sub Command0_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, _
"AutoImportTest", "C:\Documents and Settings\me\Desktop\ImportTest.xls", True
End Sub
 

the_net_2.0

Banned
Local time
Today, 01:42
Joined
Sep 6, 2010
Messages
812
my faq in the faq section here might help you. I think the title of the thread is something like "Import Multiple Spreadsheets". Search for it.
 

Users who are viewing this thread

Top Bottom