View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
MarMo MarMo is offline
external usenet poster
 
Posts: 34
Default userform setfocus question

Gary ,
Do you open another userform when leaving the textbox?
If not , your userform will remain active as your controls on this userform.

so , textbox1.setfocus should do the trick when the entry is invalid.

otherwise , post a little of your code , so we can check what's wrong.

MarMo


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
is there any way to get the cursor in a certain text box? when i leave a
textbox and the entry isn't valid, i would like to get the cursor back in
that textbox. setfocus only seems to work when the form is activated.

--


Gary