vba - Run macro by clicking away from any ActiveX textbox in a document -


i'm looking vba script run whenever click away of activex textboxes in document. alternative have run whenever click on textbox (without clicking away).

how can done without assigning subs each textbox individually?

double click on textbox , bring default method textbox, in testing textbox1_change(). method run every time type textbox.

you see 2 dropdown boxes @ top of vba editor. drop down on 1 on right , you'll see other available methods textbox, 1 of lostfocus reckon suit purposes. clicking on creates sub execute every time textbox loses focus. see how go that. cheers


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -