problem on setfocus

K

keithkuan

I have a vba that insert typed word to Word after pressing
an Enter.

but at the end of the sub, i added a setfocus, so that
after pressing Enter, the cursor will be back to the
textbox. but this doesn't work, any body know why?!
 
C

Cindy Meister -WordMVP-

Hi Keithkuan,

Show us the code. Tell us which version of Word. Is this in a
UserForm or a Word document?
I have a vba that insert typed word to Word after pressing
an Enter.

but at the end of the sub, i added a setfocus, so that
after pressing Enter, the cursor will be back to the
textbox. but this doesn't work, any body know why?!

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top