The information in this article applies to:
SUMMARYBy 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. MORE INFORMATIONMicrosoft 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 the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/supportnet/refguide/To 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. Method 1: Single Exit Macro for All FORM FieldsCreate a macro similar to sample below and assign it to each FORM field in your document as an Exit macro. In the Select Case statement, list each FORM field for which you want to change the tabbing order along with an EditGoTo statement to tell Word which field to select next.
Method 2: Separate Macros for Each FORM FieldAlternatively, you can assign a separate Exit macro to each FORM field for which you want to change the tabbing order. Each macro contains an EditGoTo statement that moves the insertion point to the desired FORM field.Tip: To easily identify each macro, give the macro a name that describes its functionality. For example, give the name "GoToSubject" to the Exit macro that moves the insertion point to the Subject FORM field. The following sample Exit macro, named "GoToSubject", moves from the current FORM field to the "Subject" FORM field:
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 |
Last Reviewed: September 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |