G
George
Does anyone know how to do this? I have this DoCmd.TransferSpreadsheet code
in an Access 2000 database that brings in Excel data. This data wasn't
password protected but now it is. I need to know how to put code in Access
that will bring in the same data but with a password. I have over 70 Excel
files that are brought in and I don't want to open each file and unprotect it.
This is the non password protected code I'm using:
***************************
DoCmd.TransferSpreadsheet acImport, 8, "tbl_Monthly_Set_Current_Activity", _
argFileName, True, "Monthly Set!a1:af2"
** *************************
These are object defintions:
tbl_Monthly_Set_Current_Activity Access database table
argFileName Excel file name
Monthly Set!a1:af2 Excel range to import
Thanks
in an Access 2000 database that brings in Excel data. This data wasn't
password protected but now it is. I need to know how to put code in Access
that will bring in the same data but with a password. I have over 70 Excel
files that are brought in and I don't want to open each file and unprotect it.
This is the non password protected code I'm using:
***************************
DoCmd.TransferSpreadsheet acImport, 8, "tbl_Monthly_Set_Current_Activity", _
argFileName, True, "Monthly Set!a1:af2"
** *************************
These are object defintions:
tbl_Monthly_Set_Current_Activity Access database table
argFileName Excel file name
Monthly Set!a1:af2 Excel range to import
Thanks