The Item function returns the ReportTemplate Object with the given name or number.
Visual Basic |
---|
Public Function Item( _ ByVal NameOrNumber As Variant _ ) As ReportTemplate |
- NameOrNumber
- Required Variant that indicates which ReportTemplates object to return. It can be either a Long or a String. If it is a Long, it is the index number of the ReportTemplate object in the ReportTemplates collection. If it is a String, it is the ID of the ReportTemplate object.
ReportTemplate object.
Since the Item method is the default, the function name can be omitted if desired.