CodeMask Object (Project)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

The CodeMask object is a collection of CodeMaskLevel objects that define the code mask for an outline code in Project.

The following example adds three levels to a code mask.

Sub DefineLocationCodeMask(objCodeMask As CodeMask) 
 
    objCodeMask.Add _ 
        Sequence:=pjCustomOutlineCodeUppercaseLetters, _ 
        Length:=2, Separator:="." 
 
    objCodeMask.Add _ 
        Sequence:=pjCustomOutlineCodeUppercaseLetters, _ 
        Separator:="." 
 
    objCodeMask.Add _ 
        Sequence:=pjCustomOutlineCodeUppercaseLetters, _ 
        Length:=3, Separator:="." 
End Sub

Name

Add

Show: