Is there a way to put a cursor in a textbox in VBA??
i'm checking for blank data or invalid data in textbox. I would like to put a cursor in the textbox, so the user will know where the problem is.
Is there a way to put a cursor in a textbox in VBA??
i'm checking for blank data or invalid data in textbox. I would like to put a cursor in the textbox, so the user will know where the problem is.
[vba]
TextBox.SelStart = 3
[/vba]
as an example
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
i tried the SetFocus method of a textbox...that worked for me! This puts the cursor inside the textbox.
Textbox.Setfocus
Last edited by rrrprogramer; 07-10-2009 at 06:34 AM.
What I showed you was how to pick the offending point. You use the two in conjunction.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber