Using the .Tab Argument to Set an Active Tab in a Dialog BoxLast reviewed: February 5, 1998Article ID: Q109293 |
The information in this article applies to:
SUMMARYThe .Tab argument can be used to set the active tab when a user-defined dialog box is dimensioned as a default Word tabbed dialog box.
MORE INFORMATIONThe following example shows how you can select a specific tab as the active tab in a tabbed dialog box. WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Sub MAIN On Error Goto Bye Dim dlg As ToolsOptions GetCurValues dlg REM ***Change the following number to select the active Tab.*** dlg.Tab = 1 x = Dialog(dlg) Bye: End Sub REFERENCES"Microsoft Word Developer’s Kit," pages 114
|
KBCategory: kbusage kbmacro
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |