Table of contents
Collapse the table of content
Expand the table of content

Application.DetailStylesProperties Method (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Sets the format of details in a usage view.


expression. DetailStylesProperties( ** AlignCellData, ** RepeatRowLabel, ** ShortLabels, ** DisplayDetailsColumn )

expression A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
AlignCellDataOptionalLongSpecifies the alignment of data in cells. Can be one of the following PjAlignment constants: pjCenter, pjLeft, or pjRight. The default value is pjRight.
RepeatRowLabelOptionalBooleanTrue if details headers are repeated on all assignment rows. The default value is True.
ShortLabelsOptionalBooleanTrue if Project displays short details header names. The default value is True.
DisplayDetailsColumnOptionalLongSpecifies whether a details column displays. Can be one of the following PjYesNoAutomatic constants: pjAuto, pjNo, or pjYes. The default value is pjYes.

Return Value



Using the DetailStylesProperties method without specifying any arguments displays the Detail Styles dialog box with the Usage Properties tab selected.


The following example hides the details column displays.

Sub DetailStyles_Remove() 

    ' Activate the Usage view 
    ViewApply Name:="Task Usage" 
    DetailStylesRemove Item:=pjWork 
End Sub
© 2018 Microsoft