I am using an inputbox with type 8 (cell reference / range). Part of the validation of the selected range is with the MsgBox below.
The problem is that when you select a wrong range and the MsgBox prompts you, if you click Ok
it leaves the number 2 in the cell, and if you click Cancel
it leaves the number 1 in the cell.
ElseIf myRange.Value = "" Or myRange.Value = 0 Then
'...
myRange = MsgBox("Please Select a Valid Code. Try again?", vbOKCancel + vbQuestion)
If myRange = vbCancel Then 'No retry
Exit Sub
Else 'retry
Run "MyCellToCorrect"
End If
Else