Hi Transformer,
Welcome to board !!!
Couple of things.
Tell the users that they need to add the references
1. Microsoft ActiveX Data Objects 2.x Library
2. Microsoft ActiveX Data Objects Recordset 2.x Library
secondly, you need '$' followed by the sheet name, like
Expect many more from you !!Code:adoRcdSource.Open "Select * into [" & strInputSheetName & "] From [" & strInputSheetName & "$] IN '" & strInputFileFullName & "'[Excel 8.0;HDR=YES;]", adoConnection




Reply With Quote

Bookmarks