+ Reply to Thread
Results 1 to 5 of 5

Reset Button

  1. #1
    Registered User
    Join Date
    07-13-2008
    Location
    Virginia
    Posts
    5

    Reset Button

    I'm trying to create a reset button to clear some cells in a form but leave the formulas. I created the button and it clears the text but also the formula in the cell...these are not combo boxes btw...just cells. Thank You...Eric

  2. #2
    Registered User
    Join Date
    07-13-2008
    Location
    Virginia
    Posts
    5

    Reset Button

    I'm trying to create a reset button to clear some cells in a form but leave the formulas. I created the button and it clears the text but also the formula in the cell...these are not combo boxes btw...just cells. Thank You...Eric

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525
    Hi Eric,

    Not sure how you're setting the range and/or clearing the cells within it, but you need to include an IF statement in your code incorporating the VBA "HasFormula" property.

    HTH

    Robert

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You can't do that with worksheet functions (the forum you're in). It would require VBA.

    You could select all the input data cells, go to the Names box (left of the formula bar), and apply a name (like Input). Then when you want to clear, go the the Names box, type Input, and then hit Delete.

    Or unlock the data entry cells, and then protect the worksheet disallowing selection of locked cells. Then to clear, do Ctrl+A (Select All), and hit Delete.
    Last edited by shg; 07-16-2008 at 10:45 PM.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Threads merged.

    va33eric, please read the Forum Rules before starting your next thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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