expression.FindShapeByWizardTag(WizardTag, Instance)
expression Required. An expression that returns one of the objects in the Applies To list.
WizardTag Required PbWizardTag. Specifies the wizard tag for which to search.
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 n th 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)