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

Report.Name Property (Project)

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

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


expression. Name

expression A variable that represents a Report object.


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
        MsgBox Prompt:="This project contains no custom reports.", _
    End If
End Sub

Property value


See also

Other resources

Report ObjectReports Object

© 2018 Microsoft