ContentControl.SetUncheckedSymbol method (Word)

Sets the symbol used to represent the unchecked state of a check box content control.

Syntax

expression. SetCheckedSymbol( _CharacterNumber_ , _Font_ )

expression An expression that returns a 'ContentControl' object.

Parameters

Name Required/Optional Data type Description
CharacterNumber Required Long The Unicode character number for the specified symbol. This value will always be the sum of 31 (the number of control symbols at the beginning of the font) and the number that corresponds to the position of the symbol in the table of symbols (counting from left to right). For example, to specify a delta character at position 37 in the table of symbols in the Symbol font, set CharacterNumber to 68.
Font Optional String The name of the font that contains the symbol.

Example

The following code example sets the unchecked symbol of the specified content control to the "MS Gothic" font "Ballot Box" symbol.

Dim objCC As ContentControl 
 
Set objCC = ActiveDocument.ContentControls.Add (wdContentControlCheckbox) 
objCC.SetUncheckedSymbol CharacterNumber:=&H2610, Font:="MS Gothic" 

See also

ContentControl Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.