Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.17 KB

Project.report.name.md

File metadata and controls

58 lines (38 loc) · 1.17 KB
title ms.service ms.assetid ms.date ms.localizationpriority
Report.Name property (Project)
project-server
da13696d-313a-3d78-2f1b-34d5fea4c2a9
06/08/2017
medium

Report.Name property (Project)

Gets or sets the name of the report. Read/write String.

Syntax

expression.Name

expression A variable that represents a 'Report' object.

Example

The following example lists the index and name of each custom report in a project.

Sub ListCustomReports()
    Dim oReport As Report
    Dim msg As String
    Dim msgBoxTitle As String
    msg = ""
    msgBoxTitle = "Custom reports in '" & ActiveProject.Name & "'"
    
    For Each oReport In ActiveProject.Reports
        msg = msg & oReport.Index & oReport.Name & vbCrLf
    Next oReport
        
    If ActiveProject.Reports.Count > 0 Then
        MsgBox Prompt:=msg, Title:=msgBoxTitle
    Else
        MsgBox Prompt:="This project contains no custom reports.", _
            Title:=msgBoxTitle
    End If
End Sub

Property value

STRING

See also

Report Object Reports Object

[!includeSupport and feedback]