TabControl.MultiRow property (Access)
Use the MultiRow property to specify or determine whether a tab control can display more than one row of tabs. Read/write Boolean.
Syntax
expression.MultiRow
expression A variable that represents a TabControl object.
Remarks
The MultiRow property uses the following settings.
Setting | Visual Basic | Description |
---|---|---|
Yes | True | Multiple rows are allowed. |
No | False | (Default) Multiple rows aren't allowed. |
You can also set the default for this property by setting a control's DefaultControl property in Visual Basic.
When the MultiRow property is set to True, the number of rows is determined by the width and number of tabs. The number of rows may change if the control is resized or if additional tabs are added to the control.
When the MultiRow property is set to False and the width of the tabs exceeds the width of the control, navigation buttons appear on the right side of the tab control. Use the navigation buttons to scroll through all the tabs on the tab control.
Note
The MultiRow property is not supported when the UseTheme property it set to "Yes."
Example
To return the value of the MultiRow property for a tab control named Details on the Order Entry form, you can use the following.
Dim b As Boolean
b = Forms("Order Entry").Controls("Details").MultiRow
To set the value of the MultiRow property, you can use the following.
Forms("Order Entry").Controls("Details").MultiRow = True
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for