Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.6 KB

Publisher.Shapes.FindShapeByWizardTag.md

File metadata and controls

48 lines (30 loc) · 1.6 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Shapes.FindShapeByWizardTag method (Publisher)
vbapb10.chm2162728
vbapb10.chm2162728
Publisher.Shapes.FindShapeByWizardTag
f1018f3a-4f8f-2686-ac58-6eee8827c743
06/14/2019
medium

Shapes.FindShapeByWizardTag method (Publisher)

Returns a ShapeRange object representing one or all of the shapes placed in a publication by a wizard and bearing the specified wizard tag.

Syntax

expression.FindShapeByWizardTag (WizardTag, Instance)

expression A variable that represents a Shapes object.

Parameters

Name Required/Optional Data type Description
WizardTag Required PbWizardTag Specifies the wizard tag for which to search. Can be one of the PbWizardTag constants declared in the Microsoft Publisher type library.
Instance Optional Long Specifies which instance of a shape with the specified wizard tag is returned. For Instance equal to n, the nth instance of a shape with the specified wizard tag is returned. If no value for Instance is specified, all the shapes with the specified wizard tag are returned.

Return value

ShapeRange

Example

The following example finds the second instance of a shape with the wizard tag pbWizardDate and assigns it to a variable.

Dim shpWizardTag As Shape 
 
Set shpWizardTag = ActiveDocument.FindShapeByWizardTag(WizardTag:=pbWizardDate, Instance:=2)

[!includeSupport and feedback]