TextBkgnd Cell (Text Block Format Section)

Office 2013 and later

Last modified: March 09, 2015

Applies to: Office 2013 | Visio 2013

Determines the text background color for a shape.

The TextBkgnd cell can have any value from 0 through 24, or 255. The values 0 and 255 (visTxtBlklOpaque) both indicate a transparent text background.

To enter a custom color, use the RGB or HSL function plus one—for example, RGB(255,127,255)+1. The value of a custom color is its RGB color, and RGB(r, g, b)+1, rather than a number, will be shown in the ShapeSheet window. When used in numeric operations, custom colors have values of 25 and above.

You can set the transparency of the text background color in the TextBkgndTrans cell.

To get a reference to the TextBkgnd cell by name from another formula, or from a program by using the CellsU property, use:

Cell name:


To get a reference to the TextBkgnd cell by index from a program, use the CellsSRC property with the following arguments:

Section index:


Row index:


Cell index: