TableView.RowFont property (Outlook)

Returns a ViewFont object that represents the font used when displaying rows in the TableView object. Read-only.


expression. RowFont

expression A variable that represents a TableView object.


The following Visual Basic for Applications (VBA) sample increments the value of the Size property for the ViewFont object returned from the RowFont property for the current TableView object.

Private Sub IncreaseRowFontSize() 
 Dim objTableView As TableView 
 If Application.ActiveExplorer.CurrentView.ViewType = _ 
 olTableView Then 
 ' Obtain a TableView object reference for the 
 ' current table view. 
 Set objTableView = _ 
 ' Increment the Size property of the 
 ' ViewFont object obtained from the 
 ' RowFont property, but only 
 ' if the font is less than 24 points 
 ' in size. 
 If objTableView.RowFont.Size < 24 Then 
 objTableView.RowFont.Size = _ 
 objTableView.RowFont.Size + 1 
 ' Save the table view. 
 End If 
 End If 
End Sub

See also

TableView Object

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.