joshman108
Active Member
- Joined
- Jul 6, 2016
- Messages
- 310
I would like to set up a logic that says something like:
Check to see if cells A1:W1 are equal to these strings in succession: ("string1", "string2", "string3"), where string1 corresponds to A1, string2 corresponds to B1, string3 corresponds to C1 and etc. If any of the cells to not equal their corresponding string value then abort and throw a message box saying something like "re order columns".
It would be nice if the message box said specifically which cell did not match it's correspond string value, for instance: "A1 does not say 'string1' ", but if that's not possible then that's fine. A general error will work.
I can of course do many different if statements checking the cells one by one but I would like a more elegant and easier solution.
Thanks!
Check to see if cells A1:W1 are equal to these strings in succession: ("string1", "string2", "string3"), where string1 corresponds to A1, string2 corresponds to B1, string3 corresponds to C1 and etc. If any of the cells to not equal their corresponding string value then abort and throw a message box saying something like "re order columns".
It would be nice if the message box said specifically which cell did not match it's correspond string value, for instance: "A1 does not say 'string1' ", but if that's not possible then that's fine. A general error will work.
I can of course do many different if statements checking the cells one by one but I would like a more elegant and easier solution.
Thanks!