Edit

Tags.Item method (PowerPoint)

Returns a single tag from the specified Tags collection.

Syntax

expression.Item (Name)

expression A variable that represents a Tags object.

Parameters

Name Required/Optional Data type Description
Name Required String The name of the single tag in the collection to be returned.

Return value

String

Example

This example hides all slides in the active presentation that don't have the value "east" for the "region" tag.

For Each s In ActivePresentation.Slides

    If s.Tags.Item("region") <> "east" Then

        s.SlideShowTransition.Hidden = True

    End If

Next

See also

Tags Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.