ID: Q109293
The information in this article applies to:
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.
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
"Microsoft Word Developer’s Kit," pages 114
KBCategory: kbusage kbmacro KBSubcategory: Additional query words: winword2 6.0 word6
Version : 6.0
Platform : WINDOWS
Last Reviewed: February 5, 1998