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
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
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
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
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.
Threads merged.
va33eric, please read the Forum Rules before starting your next thread.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks