I have a requirement where I need to connect password protected excel and read data by considering excel as DB. I use below DB connection string for connection. My problem is if the excel is password protected, then how do i pass my password via DB connection string? Any help is really appreciated.
Without password protected excel the below db connection string works fine. But i need help for password protected excel.
Connection string:: With dbConnectiion .Provider = "Microsoft.ACE.OLEDB.12.0;" .connectionString = "Data Source=" & strFileName & ";Extended Properties=Excel 12.0 Xml;HDR=NO;IMEX=1;" .ConnectionTimeout = 40 .Open End With`