Results 1 to 2 of 2

Thread: Unprotect Excel Sheet

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    7
    Hi!

    Any of you knows how to unprotect an excel sheet from VB. That must include typing the password automatically by my VB program. This is the part where I'm currently stuck!

    Anybody can help?

    Currently my code to unprotec is like that:

    Activesheet.Unprotect

    But this code will prompt the Enter password dialog box within Excel whereby the user will need to key in the password. What i want now is for VB to key in the password himself. I've tried to use the Macro to record the steps but it just wouldn't record the part where the password is supposed to be typed...

    I'll be very happy if someone can help

    Regards,
    virux

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    i have recently written a monitoring program. It opens a protected spreadsheet. What i do is open it passing the password as an attribute in the open function. If i want to change the password, i use saveas and overwrite the original. Hope this helps

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