PDA

Click to See Complete Forum and Search --> : excel password protection


nswan
Jan 9th, 2004, 09:42 AM
is it possible to bypass password protection in an excel work book by opening it through VB and looking at the values in Cells through code?

Cheers
Nick

lintz
Jan 9th, 2004, 07:13 PM
You could open the spreadsheet using the required password, read the contents of a cell then close the spreadsheet again. To open the spreadsheet you can use the below.

Set oXLApp = objExcel.Workbooks.Open(FileName:=App.Path & "\" & "Book1.xls", Password:="MyPassword")