Returns or sets an MsoCalloutType constant that represents the callout type. Read/write.
MsoCalloutType can be one of these MsoCalloutType constants. |
msoCalloutFour |
msoCalloutMixed |
msoCalloutOne |
msoCalloutThree |
msoCalloutTwo |
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the ColorFormat object.
Returns or sets a PbColorType constant that represents the shape color type. Read-only.
PbColorType can be one of these PbColorType constants. |
pbColorTypeCMYK |
pbColorTypeInk |
pbColorTypeRGB |
pbColorTypeScheme |
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the ConnectorFormat object.
Returns or sets an MsoConnectorType constant that represents the connector type. Read/write.
MsoConnectorType can be one of these MsoConnectorType constants. |
msoConnectorCurve |
msoConnectorElbow |
msoConnectorStraight |
msoConnectorTypeMixed |
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the Field object.
Returns a PbFieldType constant that represents the field type. Read-only.
PbFieldType can be one of these PbFieldType constants. |
pbFieldDateTime |
pbFieldHyperlinkAbsolutePage |
pbFieldHyperlinkEmail |
pbFieldHyperlinkFile |
pbFieldHyperlinkRelativePage |
pbFieldHyperlinkURL |
pbFieldIHIV |
pbFieldMailMerge |
pbFieldNone |
pbFieldPageNumber |
pbFieldPageNumberNext |
pbFieldPageNumberPrev |
pbFieldPhoneticGuide |
pbFieldWizardSampleText |
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the FillFormat object.
Returns an MsoFillType constant that represents the fill format type of a shape. Read-only.
MsoFillType can be one of these MsoFillType constants. |
msoFillBackground |
msoFillGradient |
msoFillMixed |
msoFillPatterned |
msoFillPicture |
msoFillSolid |
msoFillTextured |
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the Hyperlink object.
Returns an MsoHyperlinkType constant that represents the hyperlink type. Read-only.
MsoHyperlinkType can be one of these MsoHyperlinkType constants. |
msoHyperlinkInlineShape |
msoHyperlinkRange |
msoHyperlinkShape |
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the MailMergeDataSource object.
Returns a Long that represents the type of mail merge or catalog merge data source. Read-only.
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the RulerGuide object.
Returns or sets a PbRulerGuideType constant that represents the ruler guide type. Read/write.
PbRulerGuideType can be one of these PbRulerGuideType constants. |
pbRulerGuideTypeHorizontal |
pbRulerGuideTypeVertical |
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the Selection object.
Returns a PbSelectionType constant that represents the selection type. Read-only.
PbSelectionType can be one of these PbSelectionType constants. |
pbSelectionNone |
pbSelectionShape |
pbSelectionShapeSubSelection |
pbSelectionTableCells |
pbSelectionText |
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the ShadowFormat object.
Returns or sets an MsoShadowType constant that represents the shadow type of a shape. Read/write.
MsoShadowType can be one of these MsoShadowType constants. |
msoShadow1 |
msoShadow10 |
msoShadow11 |
msoShadow12 |
msoShadow13 |
msoShadow14 |
msoShadow15 |
msoShadow16 |
msoShadow17 |
msoShadow18 |
msoShadow19 |
msoShadow2 |
msoShadow20 |
msoShadow3 |
msoShadow4 |
msoShadow5 |
msoShadow6 |
msoShadow7 |
msoShadow8 |
msoShadow9 |
msoShadowMixed |
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the Shape object and the ShapeRange object.
Returns a PbShapeType constant that represents the shape type. Read-only.
PbShapeType can be one of these PbShapeType constants. |
pbAutoShape |
pbCallout |
pbCatalogMergeArea |
pbChart |
pbComment |
pbEmbeddedOLEObject |
pbFormControl |
pbFreeform |
pbGroup |
pbGroupWizard |
pbLine |
pbLinkedOLEObject |
pbLinkedPicture |
pbMedia |
pbOLEControlObject |
pbPicture |
pbPlaceholder |
pbShapeTypeMixed |
pbTable |
pbTextEffect |
pbTextFrame |
pbWebCheckBox |
pbWebCommandButton |
pbWebHTMLFragment |
pbWebListBox |
pbWebNavigationBar |
pbWebMultiLineTextBox |
pbWebOptionButton |
pbWebSingleLineTextBox |
pbWebWebComponent |
pbWebWebNavigationBar |
Note There can be only one shape of type pbCatalogMergeArea for a given publication page. If a shape is a catalog merge area, the following methods return "Permission Denied": Apply, Copy, Cut, Duplicate, Flip, IncrementLeft, IncrementRotation, IncrementTop, PickUp, RerouteConnections, SetShapesDefaultProperties, and Ungroup.
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the Story object.
Returns a PbStoryType constant that represents the type of story. Read-only.
PbStoryType can be one of these PbStoryType constants. |
pbStoryContinuedFrom |
pbStoryContinuedOn |
pbStoryTable |
pbStoryTextFrame |
expression.Type
expression Required. An expression that returns one of the above objects.
Type property as it applies to the WrapFormat object.
Returns a PbWrapType constant that represents how text wraps around the specified shape. Read/write.
PbWrapType can be one of these PbWrapType constants. |
pbWrapTypeMixed |
pbWrapTypeNone |
pbWrapTypeSquare |
pbWrapTypeThrough |
pbWrapTypeTight |
expression.Type
expression Required. An expression that returns one of the above objects.
Example
As it applies to the Callout and Shape objects.
This example formats the callout type of the specified shape if the shape is a callout. This example assumes there is at least one shape on the first page of the active publication.
Sub SetCalloutType()
With ActiveDocument.Pages(1).Shapes(1)
If .Type = pbCallout Then
With .Callout
.Border = msoTrue
.Type = msoCalloutThree
End With
End If
End With
End Sub
As it applies to the WrapFormat object.
The following example adds an oval to the active publication and specifies that the publication text wrap around both the left and right sides of the square that surrounds the oval.
Sub SetTextWrapType()
Dim shpOval As Shape
Set shpOval = ActiveDocument.Pages(1).Shapes.AddShape( _
Type:=msoShapeOval, Left:=36, Top:=36, _
Width:=100, Height:=35)
With shpOval.TextWrap
.Type = pbWrapTypeSquare
.Side = pbWrapSideBoth
End With
End Sub
As it applies to the Selection object.
This example checks to see if the selection is text and if it is, makes the selected text bold.
Sub IfCellData()
Dim rowTable As Row
If Selection.Type = pbSelectionText Then
Selection.TextRange.Font.Bold = msoTrue
End If
End Sub