Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.13 KB

Project.Resource.Notes.md

File metadata and controls

53 lines (33 loc) · 1.13 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Resource.Notes property (Project)
project-server
Project.Resource.Notes
63916a17-8ac0-e921-a29f-4d315c6cbc79
06/08/2017
medium

Resource.Notes property (Project)

Gets or sets the notes for a resource. Read/write String.

Syntax

expression. Notes

expression A variable that represents a Resource object.

Remarks

The Notes property does not accept characters with an ASCII value less than 32, except for the carriage return (ASCII 13) and linefeed (ASCII 10) characters.

Example

The following example adds a comment to the notes of the resource in the active cell.

Note

If a resource is not selected, the code results in a run-time error 1004.

Sub AddStatusNote() 
 Dim noStatus As String 
 noStatus = "No status report yet." 
 
 If ActiveCell.Resource.Notes = "" Then 
 ActiveCell.Resource.Notes = noStatus 
 Else 
 ActiveCell.Resource.Notes = ActiveCell.Resource.Notes _ 
 & vbCrLf & vbCrLf & noStatus 
 End If 
 
End Sub

[!includeSupport and feedback]