SOLVED Invite User to Select File to Import
Hi all,
I've got a line of code that opens an excel file to import it into an access table:
As you can see, the file path is hardcoded. Any idea how i could invite the user to select the file rather than hard coding it?
Soz, i'm completely new to VBA but thanks for taking a look!
J
Hi all,
I've got a line of code that opens an excel file to import it into an access table:
Code:
DoCmd.TransferSpreadsheet acImport, , "tbl_temp_sql_data", _
"C:\Users\7092\Documents\Master\Current Work\DB Folders\sqlexec.xls", False
As you can see, the file path is hardcoded. Any idea how i could invite the user to select the file rather than hard coding it?
Soz, i'm completely new to VBA but thanks for taking a look!
J
Last edited: