Automatic Jump to nest form field

T

Tgaumond

I am creating a form to collect info from people in Word 2002 and I was
hoping there was a way to make the cursor jump to the next form field once
the user had entered a set number of characters. i.e. they put in their area
code and the cursor automatically puts them to the next box for the rest of
their phone number.

Thanks,
Tom
 
J

Jay Freedman

I am creating a form to collect info from people in Word 2002 and I was
hoping there was a way to make the cursor jump to the next form field once
the user had entered a set number of characters. i.e. they put in their area
code and the cursor automatically puts them to the next box for the rest of
their phone number.

Thanks,
Tom

No, not in a form field. That can be done if you program a userform, which is a
custom dialog (http://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htm).

If you continue to use form fields, you can assign the macro that displays the
userform to be the field's entry macro, and the userform's OK button can put the
user's answer into the form field and then jump to the next form field.

There are several other ways to set this up. For help with design and
programming, post in the Userforms newsgroup
(http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.word.vba.userforms)
with more details about what's in the form and how you want it to behave.
 

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