FrameStyle Property
The FrameStyle property returns or sets the frame style for a legend or for a text box. Returns a Long.
Syntax
object.FrameStyle
object.FrameStyle = FrameStyle
Parameter | Type | Description |
FrameStyle | Long | required, grfLegendFrame |
Example 1
This example shows how to set the legend frame to the square style.
Legend.FrameStyle = grfSquareFrame
Example 2
This example shows how to return the frame style.
Debug.Print Legend.FrameStyle
Example 3
This example shows how to set the frame style for a text box.
Text1.FrameStyle = grfRoundFrame
Used by: AutoLegend object, AutoMText object