Application.GlobalReports 属性 (Project)
获取全局 (内置) 报表的集合。 只读 报表。
语法
expression。 GlobalReports
expression:表示 Application 对象的变量。
示例
以下示例在 VBE 的“即时”窗口中打印内置报表的列表。
Sub ListGlobalReports()
Dim oReport As Report
Debug.Print "Number of global reports: " & GlobalReports.Count
For Each oReport In GlobalReports
Debug.Print oReport.Index & ": " & oReport.Name
Next oReport
End Sub
下面是 Project 的 RTM 版本的输出:
Number of global reports: 21
1: Project Overview
2: Burndown
3: Cost Overview
4: Work Overview
5: Task Cost Overview
6: Overallocated Resources
7: Upcoming Tasks
8: Earned Value Report
9: Cash Flow
10: Resource Cost Overview
11: Cost Overruns
12: Resource Overview
13: Milestone Report
14: Critical Tasks
15: Slipping Tasks
16: Late Tasks
17: Get started with Project
18: Create reports
19: Organize tasks
20: Share with your team
21: Best Practice Analyzer
属性值
报告
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。