Need help with this.
Looked through some similar posts but couldnt figure out how to adapt them.
I got a value in cell B2 and a value in Cell B1 (a value between 0-10).
They are values that are not allowed to be the same.
If the value in B2 ends up to be the same as in cell B1 i need to call the sub (Sub CalculateFoe) that are randomizing a new number for B2.
Then test this again, if the randomized value in cell B2 are the same as in B1 then repeat, otherwise end sub.
I want to be able to write this in VBA.
Looked through some similar posts but couldnt figure out how to adapt them.
I got a value in cell B2 and a value in Cell B1 (a value between 0-10).
They are values that are not allowed to be the same.
If the value in B2 ends up to be the same as in cell B1 i need to call the sub (Sub CalculateFoe) that are randomizing a new number for B2.
Then test this again, if the randomized value in cell B2 are the same as in B1 then repeat, otherwise end sub.
I want to be able to write this in VBA.