+ Reply to Thread
Results 1 to 2 of 2

How to remove the 'modify' password, save the file and close?

  1. #1
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    How to remove the 'modify' password, save the file and close?

    Hello,

    When you click on Save As > Tools > General Options, there are two passwords..."Password to Open" and "Password to Modify".

    Currently, I have a workbook (let's call it Test123.xlsm) that has the password on "Password to Modify".

    My question is, using VBA, how do I remove the 'Password to Modify', save the workbook with the filename as is, including the extension and then close that workbook?

    i.e. Test123.xlsm have password on "Password to Modify"...once the macro run, the workbook name will still be 'Test123.xlsm', except that this time, when I open the workbook, it won't ask me to choose between 'Read Only' or input the password to modify

    Currently I have the VBA code, but every time it wants to save, a window always ask, which I quote:

    "A file named 'Test123.xlsm' already exists in this location. Do you want to replace it?

    Please Login or Register  to view this content.
    Last edited by dluhut; 10-03-2018 at 03:10 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: How to remove the 'modify' password, save the file and close?

    Try putting Application.DisplayAlerts = False before you save it. Set it back to True afterwards.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remove password on save file as .xlsm
    By BRISBANEBOB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2014, 07:21 PM
  2. Replies: 1
    Last Post: 10-25-2013, 06:10 PM
  3. Replies: 0
    Last Post: 10-02-2013, 01:47 AM
  4. Open every file in the folder, remove merge and wrap, save and close files
    By abdesai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2013, 04:58 PM
  5. Problem not wanting to open a file with modify file password...
    By JamesPrice in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2012, 03:37 PM
  6. How to: Open file, format data, save file, close file and repeat.
    By thexeber in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-11-2010, 12:56 PM
  7. Replies: 0
    Last Post: 04-26-2006, 10:25 PM

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