A little under a year ago, there was a thread starting with post post 365301 that covered this subject and I thought I had found a Get Out of Jail Free card.
Here is the code I’m using, which is nearly identical to the code in the message that worked:
Sub cmbAuthor_Exit(ByVal Cancel As MSForms.ReturnBoolean) If cmbAuthor.MatchFound = False Then MsgBox "Please choose a name from the list." cmbAuthor.Cancel = True With cmbAuthor .SelStart = 0 .SelLength = Len(.Value) End With End If End Sub
My problem is not that it doesn’t work. It just doesn’t pre-empt the MS Forms message “Invalid Property Value”. That displays first, then the custom message box displays. I got the impression from the original thread that the custom box displayed in place of the MS Forms message. Was I mistaken, or should the MS Forms message not display?
Thanks!
Kim Murdock