Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
58 lines (37 loc) · 1.14 KB

report-index-property-project.md

File metadata and controls

58 lines (37 loc) · 1.14 KB
title ms.prod ms.assetid ms.date
Report.Index Property (Project)
project-server
3a0ccb0f-443e-ea35-4766-b79f97fef84a
06/08/2017

Report.Index Property (Project)

Gets the index of a custom report in the Reports collection. Read-only Long.

Syntax

expression. Index

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

INT32

See also

Other resources

Report Object Reports Object