+ Reply to Thread
Results 1 to 4 of 4

How to Save As a password-to-open workbook without a password?

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    How to Save As a password-to-open workbook without a password?

    Hello,

    I have a macro that opens a workbook that has a password to open and then saves a new copy of the file. The problem is, the newly saved file still has the same password to open, but I need it removed. The closest thing I have found is ActiveWorkbook.Unprotect Password:="mypassword." I tried this but it did not work for a password to open (I assume it unprotects workbooks that are only partially protected).

    Here is the relevant snippet from what I am currently using:

    Please Login or Register  to view this content.
    Any help would be greatly appreciated. Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    02-15-2010
    Location
    Everett, WA
    MS-Off Ver
    All versions; most components
    Posts
    188

    Re: How to Save As a password-to-open workbook without a password?

    Before you SaveAs, delete the password:
    Please Login or Register  to view this content.
    Then, put it back after the SaveAs:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-14-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: How to Save As a password-to-open workbook without a password?

    So obvious in retrospect. Thank you!

  4. #4
    Forum Contributor
    Join Date
    02-15-2010
    Location
    Everett, WA
    MS-Off Ver
    All versions; most components
    Posts
    188

    Re: How to Save As a password-to-open workbook without a password?

    My pleasure!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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