+ Reply to Thread
Results 1 to 6 of 6

unprotect / re-protect only range A2:B40

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    unprotect / re-protect only range A2:B40

    Hello to all.
    This macro created with Recorder:

    Please Login or Register  to view this content.
    They do not work well.
    The first macro does not remove the protection only the range A2:B40 but to the whole sheet
    The second macro will not re-protect the range A2:B40.
    a help?
    max

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: unprotect / re-protect only range A2:B40

    Read your code carefully - noting what you are selecting and what you are actually protecting/unprotecting. They're not the same thing...

  3. #3
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: unprotect / re-protect only range A2:B40

    Helping you do what I ask?
    Perhaps I did not explain?
    max_max

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

    Re: unprotect / re-protect only range A2:B40

    Perhaps this is what you looking for:
    Please Login or Register  to view this content.
    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!!!

  5. #5
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: unprotect / re-protect only range A2:B40

    Thanks sintek
    it's o.k.
    max_max

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: unprotect / re-protect only range A2:B40

    @sintek,

    Nice go! However you could get away from using "Select", as shown below.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    @ max_max,

    You could also apply the Double_Click Event, as shown below;

    Please Login or Register  to view this content.
    Hope it helps you Guys!

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [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. [SOLVED] Protect / unprotect
    By MIGARDEIN in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2015, 04:17 PM
  2. [SOLVED] Macro to Unprotect sheets-unlock range of cells-protect sheets
    By jrace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2013, 10:45 AM
  3. Protect/Unprotect Cell Range on "Double-Click"
    By NahRoots in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2012, 01:13 AM
  4. Protect/Unprotect code causing out of range error in code
    By Petrolcb41 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2010, 02:34 PM
  5. Unprotect/Protect Limited Range for New User
    By yunesm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2010, 09:06 AM
  6. Cell range protect/unprotect toggle
    By Zyphon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2008, 07:37 AM
  7. Protect UserInterface VS Protect/Unprotect
    By Desert Piranha in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2006, 11:08 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