Sub Globals handleFocus = true 'you can use an array or an arraylist instead.End SubSub TextBox_GotFocus If Not(handleFocus) then return ...End Sub