Share via


FindShapeByWizardTag Method [Publisher 2003 VBA Language Reference]

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

expression.FindShapeByWizardTag(WizardTag, Instance)

expression Required. An expression that returns one of the objects in the Applies To list.

PbWizardTag

PbWizardTag can be one of these PbWizardTag constants.
pbWizardTagAddress
pbWizardTagAddressGroup
pbWizardTagBriefDescriptionCaption
pbWizardTagBriefDescriptionGraphic
pbWizardTagBriefDescriptionSummary
pbWizardTagBriefDescriptionSummaryPrimary
pbWizardTagBriefDescriptionTitle
pbWizardTagBusinessDescription
pbWizardTagCustomerMailingAddress
pbWizardTagDate
pbWizardTagEAPostalCodeBox
pbWizardTagEAPostalCodeGroup
pbWizardTagEAPostalCodeLine
pbWizardTagFloatingGraphicCaption
pbWizardTagHourTimeDateInformation
pbWizardTagJobTitle
pbWizardTagLinkedStoryPrimary
pbWizardTagLinkedStorySecondary
pbWizardTagLinkedStoryTertiary
pbWizardTagList
pbWizardTagLocation
pbWizardTagLogoGroup
pbWizardTagMainFloatingGraphic
pbWizardTagMainGraphic
pbWizardTagMainTitle
pbWizardTagMapPicture
pbWizardTagMasthead
pbWizardTagNewsletterTitle
pbWizardTagOrganizationName
pbWizardTagOrganizationNameGroup
pbWizardTagPageNumber
pbWizardTagPersonalName
pbWizardTagPersonalNameGroup
pbWizardTagPhoneFaxEmail
pbWizardTagPhoneFaxEmailGroup
pbWizardTagPhoneNumber
pbWizardTagPhotePlaceholderText
pbWizardTagPhotoPlaceholderFrame
pbWizardTagPublicationDate
pbWizardTagQuickPubContent
pbWizardTagQuickPubHeading
pbWizardTagQuickPubMessage
pbWizardTagQuickPubPicture
pbWizardTagReturnAddressLines
pbWizardTagStampBox
pbWizardTagStampBoxOutline
pbWizardTagStory
pbWizardTagStoryCaptionPrimary
pbWizardTagStoryCaptionSecondary
pbWizardTagStoryGraphicPrimary
pbWizardTagStoryGraphicSecondary
pbWizardTagStoryTitle
pbWizardTagTableOfContents
pbWizardTagTableOfContentsTitle
pbWizardTagTagLine
pbWizardTagTagLineGroup
pbWizardTagTime

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.

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)

Applies to | Document Object | Shapes Collection