Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ColumnFont Property

TableView.ColumnFont Property (Outlook)

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

Version Added: Outlook 2007

expression .ColumnFont

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 ColumnFont property for the current TableView object.

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

Show:
© 2015 Microsoft