OFF97: How To Left Justify Cursor in TextBox Control

ID: Q154900


The information in this article applies to:
  • Microsoft Word 97 for Windows
  • Microsoft Excel 97 for Windows
  • Microsoft PowerPoint 97 For Windows
  • Microsoft Access 97


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 :
Version : 97
Platform : WINDOWS
Issue type :


Last Reviewed: August 13, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.