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

Last reviewed: February 5, 1998
Article ID: 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

REFERENCES

"Microsoft Word Developer’s Kit," pages 114


KBCategory: kbusage kbmacro
KBSubcategory:
Additional query words: winword2 6.0 word6
Version : 6.0
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.