hi -
i currently use this method and it all works fine - the only issue is people complain because they have to type the range in each time - the workbook is loaded with sheets and the sheet name (the only sheet that needs imported) changes every week along with the number of rows
so i am trying to hard code it now and all the users need to do is manually change the name of the sheet before importing to...let's say MyHappySheet
but it doesn't seem to like this syntax
DoCmd.TransferSpreadsheet acImport, 10, "TempTable", CustomerFile, True, "MyHappySheet!E1:Z5000"
before i had a form that popped up with a text box (where the user would type out the sheet : range) that a public string variable (RangeVar) referenced .....like below.....and that worked just fine
DoCmd.TransferSpreadsheet acImport, 10, "TempTable", CustomerFile, True, RangeVar
not sure why - DoCmd.TransferSpreadsheet acImport, 10, "TempTable", CustomerFile, True, "MyHappySheet!E1:Z5000" - won't work the same way
thanks for any help!
i currently use this method and it all works fine - the only issue is people complain because they have to type the range in each time - the workbook is loaded with sheets and the sheet name (the only sheet that needs imported) changes every week along with the number of rows
so i am trying to hard code it now and all the users need to do is manually change the name of the sheet before importing to...let's say MyHappySheet
but it doesn't seem to like this syntax
DoCmd.TransferSpreadsheet acImport, 10, "TempTable", CustomerFile, True, "MyHappySheet!E1:Z5000"
before i had a form that popped up with a text box (where the user would type out the sheet : range) that a public string variable (RangeVar) referenced .....like below.....and that worked just fine
DoCmd.TransferSpreadsheet acImport, 10, "TempTable", CustomerFile, True, RangeVar
not sure why - DoCmd.TransferSpreadsheet acImport, 10, "TempTable", CustomerFile, True, "MyHappySheet!E1:Z5000" - won't work the same way
thanks for any help!