Application.BoxShowHideFields method (Project)

Shows or hides the task data fields of the active Network Diagram.

Syntax

expression. BoxShowHideFields( _Show_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Show Optional Boolean True if the fields of Network Diagram boxes are displayed in the active Network Diagram. False if only task ID numbers are displayed. The default value is True if the active Network Diagram isn't showing fields and False if it is.

Return value

Boolean

Example

The following example first hides the fields of Network Diagram boxes and then displays them.

Sub BoxShow_HideFields() 
 
 Dim Result As Boolean 
 
 'Activate the Network Diagram view 
 ViewApply Name:="Network Diagram" 
 
 Result = BoxShowHideFields(False) 
 Result = BoxShowHideFields(True) 
 
End Sub

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.