I have all these textboxes in my userform:
Txt3.Value
Txt4.Value
Txt5.Value
Txt6.Value
Txt7.Value
Txt8.Value
Txt9.Value
Txt10.Value
Txt11.Value
Txt12.Value
Txt13.Value
Txt14.Value
Txt15.Value
Txt16.Value
Txt17.Value
Txt18.Value
Txt19.Value
Txt20.Value
Txt21.Value
Txt22.Value
Txt23.Value
Txt24.Value
Txt25.Value
Txt26.Value
Txt27.Value
Txt28.Value
Txt29.Value
Txt30.Value
Txt31.Value
Txt32.Value
I have an idea on how to restrict any of these from being the same, but my way seems super inefficient and it will take me a long time.
This code will be put in a command button click.
Any ideas on a simple bit of code?
Txt3.Value
Txt4.Value
Txt5.Value
Txt6.Value
Txt7.Value
Txt8.Value
Txt9.Value
Txt10.Value
Txt11.Value
Txt12.Value
Txt13.Value
Txt14.Value
Txt15.Value
Txt16.Value
Txt17.Value
Txt18.Value
Txt19.Value
Txt20.Value
Txt21.Value
Txt22.Value
Txt23.Value
Txt24.Value
Txt25.Value
Txt26.Value
Txt27.Value
Txt28.Value
Txt29.Value
Txt30.Value
Txt31.Value
Txt32.Value
I have an idea on how to restrict any of these from being the same, but my way seems super inefficient and it will take me a long time.
This code will be put in a command button click.
Any ideas on a simple bit of code?