+ Reply to Thread
Results 1 to 3 of 3

open the encrypted file via vba macro

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question open the encrypted file via vba macro

    Is it possible to open the encrypted file via vba macro? I encrypted the file with password :MY_PWD and I've to open same file. I tried with ActiveWorkbook.unprotect Password:="My_PWD" in workbook open() event. even if the macro is enabled it asks me to enter the password. can we bypass that problem? wont it take the password from the code or how can we give the password via VBA?

    BR
    P Sukumaran

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: open the encrypted file via vba macro

    if you are opening the workbook in code you can supply the password argument to the Open method; you can't do anything with code in that same workbook
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    07-09-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: open the encrypted file via vba macro

    thanks for the response. can you give me any other idea to protect my workbook in some other way?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1