Programming Word Form Fields

M

Mary Trounson

I have created a document with form fields and have been trying to
unsuccessfully use the code in kb article 211219 to make the enter key behave
like the tab key. I also have an area where credit card info will be entered
and have set each number up as separate fields ie 16 as the client wishes to
show a line between each number. In this area I would like to have the user
type a number key and have the insertion point automatically move to the next
field. I am very familiar with MS Access and VBA, but am struggling with word
objects.
I am using Word 2003.
 
D

Doug Robbins - Word MVP

Moving the cursor automatically to the next field is not possible with
formfields, as the only events are on-entry and on-exit.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
M

Mary Trounson

Yes and no. I still can't get the code example in kb article 211219 to work.
It throws up at:

myformfield = Selection.Bookmarks(1).Name
"The requested member of the collection does not exist"

As I mentioned before I am struggling with Word objects.

And is there a better way then to handle credit card number entering?
 

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