Hi everyone,
I have an Excel sheet which is used for testing. Starting in F5 to HZ5 (so that row) cells are filled with the value "Yes" or "No". Depending on this value, the testcase is tested or not.
I want a function to put a number of random testcases to yes, and the rest to no. Keep in mind that the test cases can be expended, so HZ5, could also become ZZ5.
This is what I would like:
- The users clicks a buten like "Enable random testcases"
- The code selects row 5 (starting at column 5) ending at the last testcase, which can differ.
- All values in this range are set to "No"
- The user is prompted an input field "How many testcases do you wan't to be enabled?"
- The user enters a value (for example 20)
- The code puts 20 (or whatever the user has entered) random cells within the selection to "Yes"
I have literally no idea how to do this. I know some VBA basics, but not a lot.
Thanks in advance!
I have an Excel sheet which is used for testing. Starting in F5 to HZ5 (so that row) cells are filled with the value "Yes" or "No". Depending on this value, the testcase is tested or not.
I want a function to put a number of random testcases to yes, and the rest to no. Keep in mind that the test cases can be expended, so HZ5, could also become ZZ5.
This is what I would like:
- The users clicks a buten like "Enable random testcases"
- The code selects row 5 (starting at column 5) ending at the last testcase, which can differ.
- All values in this range are set to "No"
- The user is prompted an input field "How many testcases do you wan't to be enabled?"
- The user enters a value (for example 20)
- The code puts 20 (or whatever the user has entered) random cells within the selection to "Yes"
I have literally no idea how to do this. I know some VBA basics, but not a lot.
Thanks in advance!