that might cause conflicts if there are more TextBoxes on the form with other uses. If you perfer to use Matthew Gate's solution, I suggest you consider "tagging" the objects you want to work with.
Code:Dim ctl as Control For Each ctl In Controls If TypeOf ctl Is TextBox Then If ctl.Tag = "TAGGED" Then 'Do your code here End if End if Next ctl




Reply With Quote