Results 1 to 4 of 4

Macro Removes Password Protecting Sheet

Threaded View

  1. #1
    Registered User
    Join Date
    04-05-2013
    Location
    Gurnee, IL
    MS-Off Ver
    MS365 (PC) Version 2310
    Posts
    51

    Macro Removes Password Protecting Sheet

    The attached spreadsheet is used to assign a job number to new contracts. There are 2 macros - One to find a contract number in the list and the other to add a new contract number and assign it a job number.

    The issue I have is when I run the macro to add a new contract number and assign it a job number, the password to protect the spreadsheet is no longer required. The spreadsheet is protected, but you simply have to select Unprotect Sheet to edit the spreadsheet.

    What do I have to add to the VB code to reinstate the password after the macro is run?

    Thanks!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Protecting a sheet with a password in VBA
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2020, 01:00 PM
  2. Forgot password when protecting sheet
    By ACrossley1 in forum Excel General
    Replies: 1
    Last Post: 01-02-2020, 06:38 AM
  3. Password Protecting Hidden Sheet
    By koochandkai in forum Excel General
    Replies: 1
    Last Post: 07-02-2016, 09:00 AM
  4. [SOLVED] Password Protecting Sheet
    By nickhunt in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-15-2014, 10:00 AM
  5. Protecting sheet password
    By John Cruz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2014, 01:29 AM
  6. Macro that removes the protection password from word docs?
    By tshrader in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2012, 09:38 AM
  7. [SOLVED] Sheet Protecting password
    By Nick in forum Excel General
    Replies: 1
    Last Post: 06-29-2005, 08:05 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