WD: How to Control the Tabbing Order in a Form |
Q120447
By default, when you fill in an online form, Word positions the insertion point in the first FORM field and moves from one field to the next in the form when you press the TAB key. (For Word 6.x, pressing ENTER also moves you from one field to the next; this is not true for Word 7.x). To change the default tabbing order, use the procedure described in this article.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please see the following page on the World Wide Web:
http://www.microsoft.com/partner/referral/For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://support.microsoft.com/directory/overview.aspTo change the default tabbing order, assign Exit macros to the FORM fields. These macros use the EditGoTo WordBasic statement to tell Word which FORM field to select next.
Sub MAIN
Dim dlg As FormFieldOptions
GetCurValues dlg
n$ = dlg.Name
Select Case n$
Case "To"
EditGoTo .Destination = "From"
Case "From"
EditGoTo .Destination = "Subject"
Case "Subject"
EditGoTo .Destination = "Header"
Case "Header"
EditGoTo .Destination = "CC"
Case "CC"
EditGoTo .Destination = "Memo"
Case "Memo"
EditGoTo .Destination = "To"
Case Else
End Select
End Sub
Sub Main
EditGoTo "Subject"
End Sub
For information about how to do this in Word 97, please see the following
article in the Microsoft Knowledge Base:
Q159896 WD97: How to Control the Tabbing Order in a Form
Additional query words: sequence jump around move Change tab forms order
Keywords : kbmacro kbdtacode kbmacroexample winword macword word95
Issue type : kbhowto
Technology : kbHWMAC kbOSMAC kbWordSearch kbWordMacSearch kbWord700Search kbZNotKeyword2 kbWord600Mac kbWord601aMac kbWord601Mac kbWord600 kbWord600a kbWord600c kbWord700 kbWord700a
|
Last Reviewed: December 30, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |