VBA beginner here. I apologize for not being able to provide a code snippet, but I'm seeking a script that works as follows:
- Check whether the value inputted in a cell (say A1) appears in an array of cells (say B1:B100).
- If the value inputted to A1 does NOT appear in B1:B100, show a MsgBox with Retry/Cancel buttons that warns the user that their input is invalid.
- If the user selects Retry, RE-ACTIVATE cell A1 so that the user must re-input a different value. If the user selects Cancel, leave cell A1 blank and exit the cell.
I am seeking a VBA solution only, NOT Excel's built-in Data Validation feature (for a number of reasons).
Thank you everyone!