+ Reply to Thread
Results 1 to 4 of 4

Macro to unlock a range on specific worksheets in workbook.

  1. #1
    Registered User
    Join Date
    07-24-2017
    Location
    Iowa
    MS-Off Ver
    2016
    Posts
    2

    Macro to unlock a range on specific worksheets in workbook.

    Hello, I have a number of workbooks with about 30 worksheets in each book that I use for clients to submit expenses to me. When I sent the books out for the new fiscal year, I protected them and inadvertently locked the cells in which the clients are to enter data.

    I recorded a macro to unlock the cells for me, and it works for the Jul Expenses sheet, but I can't seem to figure out how to make it apply to the selected sheets in the workbook.

    The macro was recorded using the "Jul Expenses" sheet, but there are sheets for all months Jul Expenses, Aug Expenses, Sep Expenses all the way through Jun Expenses. All of the monthly sheets are identical except for the month indicated.

    Can anyone help me adjust the code to apply to all of the monthly expense sheets and not just the Jul Expenses sheet?

    Please Login or Register  to view this content.
    Last edited by alex50266; 07-24-2017 at 01:00 PM.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Macro to unlock a range on specific worksheets in workbook.

    Welcome to the forum...Give this a go...Untested.
    Can test if you upload a sample file..
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    07-24-2017
    Location
    Iowa
    MS-Off Ver
    2016
    Posts
    2

    Re: Macro to unlock a range on specific worksheets in workbook.

    This worked perfectly. Thank you. I did add my protection password to the vba code to eliminate having to type the PW in 12 times.

    Thanks again!

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Macro to unlock a range on specific worksheets in workbook.

    Pleasure...Thanks for rep +. Please mark thread as solved...

+ 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. Macro to unlock the protected workbook
    By ronlau123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2017, 02:05 AM
  2. [SOLVED] Apply Macro to specific worksheets in workbook
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-17-2014, 02:45 PM
  3. [SOLVED] VBA to take a specific range from all worksheets in a workbook and combine them into one
    By amweisberg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2014, 04:13 PM
  4. [SOLVED] Macro to copy specific worksheets into a new workbook
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-15-2013, 10:28 AM
  5. macro to copy a range of worksheets based on cell entry and rename specific sheets
    By Lbischoff in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2012, 12:13 PM
  6. [SOLVED] Create Macro to lock and save workbook and another to unlock
    By Nicola13 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-03-2012, 12:23 PM
  7. Replies: 0
    Last Post: 09-06-2005, 04:05 AM

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