+ Reply to Thread
Results 1 to 6 of 6

Protecting formulas

  1. #1
    Registered User
    Join Date
    09-23-2008
    Location
    australia
    Posts
    10

    Protecting formulas

    Hi all,

    I have a 2 part question relating to formula protection.

    1. How do you protect formulas in cells and allow flexibility in the sheet to insert rows. So once you insert the new row, you're able to copy in the formula.

    2. Is there a way of copying a formula back into a cell automatically once it has been overrided by a manual entry.

    any assistance on this would be most appreciated,

    Cheers,

    Val

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi Val,

    1. When protecting the worksheet, there are a series of options that you can let users do while it's protected including the ability to Insert Rows. Be sure to check that box when applying protection.

    2. You can use a macro (VBA) to check when a certain cell (or cells) change, then reset them to whatever you want when they do change.

  3. #3
    Registered User
    Join Date
    09-23-2008
    Location
    australia
    Posts
    10
    thanks paul!

    with 2, if you reset back to its orginal formula will you lose the last number that has been added?

    I'd prefer to keep the number.

    cheers,

    Val

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Where would you hope to "keep" the number? If you'd like to insert the formula so that its result is that new number, you're going to need quite a bit more code than simply 2 or 3 lines. (Of course, that also depends on the complexity of the formula you want in the cell, and of course if the formula is referencing other cells, those cell values would need to be changed to give the result you want to "keep".)

  5. #5
    Registered User
    Join Date
    09-23-2008
    Location
    australia
    Posts
    10
    thanks paul,

    my forumla is very simple.

    in terms of keeping the number - what I mean is to keep the number as part of the referenced formula.

    Example, there is a formula in B1 (e.g. C1*A1).
    If you manually place an integer into B1 - the formula is lost.

    Is there a way of keeping the manual integer in B1 and not lose the formula.

    cheers,

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Val, unfortunately you cannot keep a static value (the integer or any other value) in a cell along with a formula. You can have one or the other.

+ 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. Cut-and-paste breaks dependant formulas
    By DanielHutchison in forum Excel General
    Replies: 1
    Last Post: 07-11-2008, 04:50 PM
  2. Protecting formulas?!
    By rjmills18 in forum Excel General
    Replies: 0
    Last Post: 07-09-2008, 09:04 AM
  3. Copying "IF" formulas
    By THORPLBG in forum Excel General
    Replies: 2
    Last Post: 02-15-2008, 11:33 AM
  4. Copying EXACT formulas from another page
    By goofy78270 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2007, 11:43 AM
  5. copying formulas through vb
    By kostas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-22-2007, 10:44 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