OFF97: How To Left Justify Cursor in TextBox Control

Last reviewed: December 19, 1997
Article ID: Q154900
97 WINDOWS kbtool The information in this article applies to:
  • Microsoft Access 97 for Windows
  • Microsoft Excel 97 for Windows
  • Microsoft PowerPoint 97 for Windows
  • Microsoft Word 97 for Windows

SUMMARY

In the Microsoft Office products listed at the beginning of this article, when you display a UserForm that contains a TextBox control, by default the cursor position in the TextBox control is indented. If you want the initial cursor position in the TextBox control to be left justified, you must set the SelectionMargin property of the TextBox to False.

MORE INFORMATION

To set the SelectionMargin property of the TextBox control, perform the following steps:

  1. From within the Visual Basic Editor, select the TextBox control that you have inserted on the UserForm.

  2. On the View menu, click Properties Window.

  3. In the Properties Window, click SelectionMargin.

  4. Select False from the drop-down list.

The next time that the UserForm is displayed, the initial cursor position will be left justified in the TextBox.


Additional query words: dialog edit box xl97 kbtool
Keywords : kbtool
Version : 97
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: December 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.