MultiLine property
Specifies whether a control can accept and display multiple lines of text.
Syntax
object.MultiLine [= Boolean ]
The MultiLine property syntax has these parts:
Part | Description |
---|---|
object | Required. A valid object. |
Boolean | Optional. Whether the control supports more than one line of text. |
Settings
The settings for Boolean are:
Value | Description |
---|---|
True | The text is displayed across multiple lines (default). |
False | The text is not displayed across multiple lines. |
Remarks
A multiline TextBox allows absolute line breaks and adjusts its quantity of lines to accommodate the amount of text it holds. If needed, a multiline control can have vertical scroll bars.
A single-line TextBox doesn't allow absolute line breaks and doesn't use vertical scroll bars. Single-line controls ignore the value of the WordWrap property.
Note
If you change MultiLine to False in a multiline TextBox, all the characters in the TextBox will be combined into one line, including non-printing characters (such as carriage returns and new-lines).
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기