Microsoft KB Archive/109293

{|
 * width="100%"|

Using the .Tab Argument to Set an Active Tab in a Dialog Box

 * }

Q109293

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c

-

SUMMARY
The .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 INFORMATION
The 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