Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 1.5 KB

Project.Application.DetailStylesAdd.md

File metadata and controls

56 lines (34 loc) · 1.5 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.DetailStylesAdd method (Project)
vbapj.chm963
vbapj.chm963
project-server
Project.Application.DetailStylesAdd
40a1dfa4-ef57-835d-4e42-9631c906ac0b
06/08/2017
medium

Application.DetailStylesAdd method (Project)

Adds another timescale data field to a usage view.

Syntax

expression. DetailStylesAdd( _Item_, _Position_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Item Optional Long The timescale data field to add. The default value is pjWork.If the active view is the Resource Usage view, can be one of the PjTimescaledData constants.
Position Optional Integer The position to add the field, relative to other fields. If Position is n + 2 or greater, where n is the number of fields displayed, the field is added at n + 1. The default value is n + 1.

Return value

Boolean

Example

The following example makes overallocations stand out from other information in a usage view.

Sub HighlightOverallocations() 
 
 DetailStylesAdd pjOverallocation 
 DetailStylesFormat Item:=pjOverallocation, Font:="Arial", Size:=12, _ 
 Bold:=True, Color:=pjRed, CellColor:=pjBlack, Pattern:=pjSolidFill 
 
End Sub

[!includeSupport and feedback]