Returns or sets the three-dimensional style for text within a specific cell or range of cells.
Syntax
object.TextStyle [=style]
object.TextStyleBand(BandNumber) [=style]
object.TextStyleFixed [=style]
object.TextStyleHeader(BandNumber) [=style]
Syntax for the TextStyle, TextStyleBand, TextStyleFixed, and TextStyleHeader properties has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
BandNumber | Required. A Long value that specifies the band being affected. |
style | An integer or constant that specifies the text style, as described in Settings. |
Settings
The settings for style are:
Constant | Value | Description |
flexTextFlat | 0 | The text is normal, flat text. This is the default. |
flexTextRaised | 1 | The text appears raised. |
flexTextInset | 2 | The text appears inset. |
flexTextRaisedLight | 3 | The text appears slightly raised. |
flexTextInsetLight | 4 | The text appears slightly inset. |
Remarks
Settings 1 and 2 work best for large and bold fonts. Settings 3 and 4 work best for small, regular fonts.