Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

Create fields on Word 2007

I have created several fields on my Word2007 to restrict users for the input.

The property of the fields has been set with "AutoTab" to false and "SpecialEffect" to "0-fmSpecialEffectFlat" in order to disable the border around the field during printing.

However, I found that users could tab from one field to another. Is there any way to get around this problem ?

Thanks
Avatar of irudyk
irudyk
Flag of Canada image

You could try adding a KeyDown event for every text box control.
So if one of the text boxes is named TextBox1 you could use the following so that when then user presses the Tab key the focus is set back to itself.

Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = 9 Then TextBox1.Select
End Sub

Open in new window

Avatar of AXISHK
AXISHK

ASKER

Sorry, my typo mistake. I mean I cannot use the Tab to tab through the fields. It always say within the current field. How to solve this ?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of irudyk
irudyk
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial