VBA Get Combobox to 'suggest' an option

后端 未结 2 422
忘了有多久
忘了有多久 2021-01-13 16:14

I am relatively new to VBA and I am trying to solve a problem working with a userform in Excel 2010.

I am writing a pseudo spell checker that validates words against

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-13 16:43

    You may want to change 2 properties for the ComboBox to force an entry from a list is selected:

    1. MatchEntry --> 1 - fmMatchEntryComplete
    2. MatchRequired --> True

    So when a user try to select a word outside of the list, they get a "Invalid property value.":

    ComboBox Properties enter image description here

提交回复
热议问题