Creating a reset button
juniablo
-
Mike-31 Posted messages 18405 Registration date Status Contributor Last intervention -
Mike-31 Posted messages 18405 Registration date Status Contributor Last intervention -
Hello everyone,
I’m reaching out to you once again for help because I don’t know how to solve my issue since I’ve never done this before. I’m doing some research but in the meantime, please give me a solution.
So, I have a form attached in which I need to create a reset button that will set all the fields in the table to 0 after use when I click on it. I kindly ask you to explain to me in detail the different steps (how to create the button, how the back-end requests work). Thank you so much for helping me.
http://cjoint.com/?DFnk1mYhyD9
I’m reaching out to you once again for help because I don’t know how to solve my issue since I’ve never done this before. I’m doing some research but in the meantime, please give me a solution.
So, I have a form attached in which I need to create a reset button that will set all the fields in the table to 0 after use when I click on it. I kindly ask you to explain to me in detail the different steps (how to create the button, how the back-end requests work). Thank you so much for helping me.
http://cjoint.com/?DFnk1mYhyD9
4 answers
Hello benol3, I saw your example but you can see that the displayed results are #N/A and when entering values the result is still #N/A, which is not correct. If you could show me your method in detail, maybe I could also get an idea of how you applied the formulas. Thank you for your help, I am waiting.
The "Reset" button is a macro that clears the range A2:C11. If you want to see the code, press alt+F11. It's a very simple VBA code.
To remove the #N/A errors, you need to modify all your formulas by adding the IFERROR function.
For example, in D2, the formula: =VLOOKUP(C:C, Sheet5!A:B, 2,) becomes =IFERROR(VLOOKUP(C:C, Sheet5!A:B, 2,), "")
To remove the #N/A errors, you need to modify all your formulas by adding the IFERROR function.
For example, in D2, the formula: =VLOOKUP(C:C, Sheet5!A:B, 2,) becomes =IFERROR(VLOOKUP(C:C, Sheet5!A:B, 2,), "")
Hello,
Check your file in return, I also modified your Internet sheet formulas
https://www.cjoint.com/?DFnoJXjuWBT
I think it would be wise to create a msgbox to confirm deletion to avoid accidental deletion
https://www.cjoint.com/?DFnoQ3BUi6F
See you
Mike-31
A period of failure is a perfect moment to sow the seeds of knowledge.
Check your file in return, I also modified your Internet sheet formulas
https://www.cjoint.com/?DFnoJXjuWBT
I think it would be wise to create a msgbox to confirm deletion to avoid accidental deletion
https://www.cjoint.com/?DFnoQ3BUi6F
See you
Mike-31
A period of failure is a perfect moment to sow the seeds of knowledge.
WHY modify the formulas. this modification has errors. did you see the results when you enter values or set to zero. I prefer to use my formulas. all I want is how to create the Reset button to set to zero without changing anything to avoid manually setting all the cells to zero. I want automation. thank you for your help, I am waiting.
Re,
No, modifying the formulas cannot lead to any error. For example, if we take your formula in cell G2
=VLOOKUP(B:B, detail!C:E, 3,), if the conditions are not met, the formula returns #N/A which is an error message. All formulas that result from this formula will automatically be in error
I simply added =IF(AND(B2="";C2="");""; which tests the cells that are the source of the formula to display nothing if the conditions are not met, which is more logical and more pleasant as well. Alternatively, displaying a zero =IF(AND(B2="";C2="");0;
but under no circumstances can there be an error at this point
--
Talk soon
Mike-31
A period of failure is a perfect time to sow the seeds of knowledge.
No, modifying the formulas cannot lead to any error. For example, if we take your formula in cell G2
=VLOOKUP(B:B, detail!C:E, 3,), if the conditions are not met, the formula returns #N/A which is an error message. All formulas that result from this formula will automatically be in error
I simply added =IF(AND(B2="";C2="");""; which tests the cells that are the source of the formula to display nothing if the conditions are not met, which is more logical and more pleasant as well. Alternatively, displaying a zero =IF(AND(B2="";C2="");0;
but under no circumstances can there be an error at this point
--
Talk soon
Mike-31
A period of failure is a perfect time to sow the seeds of knowledge.
Thank you in advance, I am still waiting.
So let's apply the button to the fields (sites, capacities, actual distance).