Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Shadow Property


This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.  

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue

expression.Shadow

expression   Required. An expression that returns one of the above objects.

Returns a ShadowFormat object that represents the shadow formatting for the specified shape.

expression.Shadow

expression   Required. An expression that returns one of the above objects.

Example

This example applies shadow and bold formatting to the selection. This example assumes text is selected in the active publication.

Sub SetFontShadow()
    If Selection.Type = pbSelectionText Then
        With Selection.TextRange.Font
            .Shadow = msoTrue
            .Bold = msoTrue
        End With
    Else
        MsgBox "You need to select some text."
    End If
End Sub

This example adds an arrow with shadow formatting and fill color to the first page in the active document.

Sub SetShapeShadow()
    With ActiveDocument.Pages(1).Shapes.AddShape( _
            Type:=msoShapeRightArrow, Left:=72, _
            Top:=72, Width:=64, Height:=43)
        .Shadow.Type = msoShadow5
        .Fill.ForeColor.RGB = RGB(Red:=255, Green:=0, Blue:=255)
    End With
End Sub
Show: