+ Reply to Thread
Results 1 to 3 of 3

Adding unprotect function to a macro?

  1. #1
    Forum Contributor
    Join Date
    09-19-2014
    Location
    Michigan
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    145

    Adding unprotect function to a macro?

    Below is what I have it is making a copy of a sheet. But the sheet it is copying is locked with a password. Passwork is Mattski1. How would I rewrite this to unlock the new sheet but leave the original sheet locked?
    Please Login or Register  to view this content.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Adding unprotect function to a macro?

    Just add it after the copy:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    09-19-2014
    Location
    Michigan
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    145

    Re: Adding unprotect function to a macro?

    Thanks!!!! That solved my issue!

+ 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. Adding in a multiplication function to an existing macro
    By 6423joel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-26-2013, 06:02 PM
  2. Macro to unprotect sheet - run macros - then unprotect sheet is not working
    By AnnieBrownTX in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 06:59 PM
  3. Unprotect an excel sheet from inside a function
    By Typicalalex1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2010, 02:28 PM
  4. Adding a Function to a cell when inserting a row from a macro
    By Mbarnes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-31-2006, 11:45 AM
  5. [SOLVED] Adding a Macro to a VLookup Function
    By Wanda H. in forum Excel General
    Replies: 1
    Last Post: 08-16-2005, 04: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