View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tim Williams Tim Williams is offline
external usenet poster
 
Posts: 1,588
Default excel db, but because password

See he
http://support.microsoft.com/?id=257819

It seems you must first open the workbook in Excel before using DAO to query
it.

Tim


"tom taol" wrote in message
...

the following code is not working... because the password format....
please

Set db = OpenDatabase(ThisWorkbook.Path & "\" & szFileBase, 0, 0, "EXCEL
8.0;PWD=1111")

*** Sent via Developersdex http://www.developersdex.com ***