Word Mac 2004 VBA Form problem

P

PanthersFan

Hi. I'm a new Mac user and love the maching. I'm having an issue, however,
with a VBA form that I've created.

I've created a form with 3 text fields, an OK and a Cancel button. These
fields are inseted at different bookmarks in the Word document. The form
itself works as designed, except for tabbing between fields. when the form
opens, the cursor is in the last field on the form. The Tab key doesn't move
the cursr to any of the other fields. I can use the mouse to place the
cursor in other fields, but this isn't how it should work. If I use the
mouse, the date gets inserted properly and everything. I've set the tab
order properly.

I've tried this form on a PC running Office XP and it runs fine, so it
appears to be a bug. Has anyone else run into this isseu? Are there any
workarounds?

Thanks in advance for the help.

Dave
 
J

JE McGimpsey

PanthersFan said:
I've tried this form on a PC running Office XP and it runs fine, so it
appears to be a bug.

It is.
Has anyone else run into this isseu?
Yup.

Are there any workarounds?

AFAIK, no. I and others have been complaining about this for a long time
- it's on the list, but likely to get overwhelmed by all the changes
that will be happening in the next couple of years.
 
P

PanthersFan

Thanks for the response. The workaround that I figured out was to use
individual forms for each field, and then use the SetFocus method on
Initialize to get the cursor in the field. This works OK, but i'd rather
have all of the fields on the same form. I'm trying to figure out if I can
use the SetFocus method on the exit of one field to force the focus to the
next field.

Of course, my real preference is for Microsoft to fix the bug...

Dave
 
J

Jim Gordon MVP

Hi PathersFan,

Am I correct that what you are describing is using the forms on the
Forms toolbar in a Word document?

If so, to enable tabbing through the form fields you simply need to
click the Lock button at the far right of the toolbar. Then when someone
presses the Tab key the selection cursor moves to the next form field in
the document.

To the best of my knowledge this feature is not broken and should work fine.

-Jim
 
P

PanthersFan

Actually, I'm talking about VBA forms. Thans for the response, though.

PanthersFan
 
J

Jim Gordon MVP

Hi,

OK good. I wasn't sure which form controls you were referring to.

I built a userform and added 3 textbox controls to it. I agree with your
observation that tabbing from one control to another is not working as
expected.

When I built a similar form in Word 2001 the tabs work as expected, so
this is a geniune bug in Word 2004.

Setting the tab order had no effect in Word 2004, but does work in Word
2001, so there's another bug (but it's probably a consequence of the
first bug).

Someone from the MacBU is probably going to see this thread in the
newsgroup. But just to be sure this doesn't get overlooked MVPs can
alert Microsoft to important bugs and this surely qualifies, so I'll
send it in.

-Jim
 

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