Results 1 to 2 of 2

Thread: excel password protection

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870

    excel password protection

    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
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    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.

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width