+ Reply to Thread
Results 1 to 3 of 3

Macro to lock certain ranges of cells with formulas

  1. #1
    Registered User
    Join Date
    11-18-2019
    Location
    Paris
    MS-Off Ver
    Office 2016
    Posts
    80

    Macro to lock certain ranges of cells with formulas

    Hi,

    I'm having trouble with a macro which aims at locking cells which have a formula.
    In the attached workbook, I would like to lock the range of cells between J4:J19 because it has a formula.

    I found to following code:

    Please Login or Register  to view this content.
    But I cannot manage to tweak it so it only applies to a certain range of cells. I don't want to lock all the formulas but only a part of them.
    I cannot go with the Review tab because the worksheet is going to be duplicated several times and I had issues when I did that.

    Could you please help me?

    Many thanks!

    Okela
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Macro to lock certain ranges of cells with formulas

    Will there be good results?
    Please Login or Register  to view this content.
    Best Regards,
    Maras.

  3. #3
    Registered User
    Join Date
    11-18-2019
    Location
    Paris
    MS-Off Ver
    Office 2016
    Posts
    80

    Re: Macro to lock certain ranges of cells with formulas

    Hi maras,

    Thanks! It's working.

    Okela

+ 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. Auto copy formulas to new row and lock cells
    By jcmckeon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2018, 12:23 PM
  2. Lock cells with formulas
    By Joetheactuary in forum Excel General
    Replies: 1
    Last Post: 07-24-2014, 02:25 PM
  3. want to lock the cells so that the formulas do not change when i sort
    By smillhorn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2012, 04:30 AM
  4. Lock and Unlock Cells using formulas?
    By fenerfan in forum Excel General
    Replies: 1
    Last Post: 05-05-2008, 11:56 PM
  5. Can I protect/lock only the cells containing formulas?
    By JLee98 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2007, 10:17 PM
  6. [SOLVED] Hide formulas but not lock cells or contents
    By Gunjani in forum Excel General
    Replies: 2
    Last Post: 03-16-2006, 08:35 AM
  7. Replies: 2
    Last Post: 03-02-2005, 05:06 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