Skip to content

Latest commit

 

History

History
87 lines (43 loc) · 1.68 KB

Outlook.TableView.AutoPreviewFont.md

File metadata and controls

87 lines (43 loc) · 1.68 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
TableView.AutoPreviewFont property (Outlook)
vbaol11.chm2535
vbaol11.chm2535
Outlook.TableView.AutoPreviewFont
988e7bc4-9957-f611-b89e-1eb7a14fbfcc
06/08/2017
medium

TableView.AutoPreviewFont property (Outlook)

Returns a ViewFont object that represents the font used when automatically previewing Outlook items in the TableView object. Read-only.

Syntax

expression. AutoPreviewFont

expression A variable that represents a TableView object.

Example

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

Private Sub ReduceAutoPreviewFontSize() 
 
 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 
 
 
 
 ' Decrement the Size property of the 
 
 ' ViewFont object obtained from the 
 
 ' AutoPreviewFont property, but only 
 
 ' if the font is 6 points or larger. 
 
 If objTableView.AutoPreviewFont.Size > 5 Then 
 
 objTableView.AutoPreviewFont.Size = _ 
 
 objTableView.AutoPreviewFont.Size - 1 
 
 
 
 ' Save the table view. 
 
 objTableView.Save 
 
 End If 
 
 End If 
 
End Sub

See also

TableView Object

[!includeSupport and feedback]