vba - How do I get an excel textbox to run a macro on a completed change -
vba - How do I get an excel textbox to run a macro on a completed change -
i found link here, doesn't seem want to.
i trying run macro when textbox updated, after user has completed and/or moved box. have tried few different methods, not clear when leaving focus on text box.
i tried _exit, if click on textbox, ignores it. _change out, since typing first character runs it. won't work project; have 4 fields run macro when 4 have been 'selected'. if ran on change, wants run macro , display status every keystroke.
here code trying run. need know action on textbox activate leave field.
private sub signalname_textbox_exit(byval cancel msforms.returnboolean) dim mysigname string mysigname = me.signalname_textbox.value if mysigname <> "" selectedsigname = true else selectedsigname = false end if if selectedsigname , selectedcomp , selectedpinid , selectedfmi chum = checkforduplicates end if end sub
fwiw, can't assume textbox entered in particular order (first, last, etc.). tried _exit, seems trigger when click on arrow combobox. clicking up/down counters, other textboxes, or field of combobox nothing.
thanks
previous semi-helpful answer
excel vba excel-vba textbox userform
Comments
Post a Comment