InsertSymbol

Syntax

InsertSymbol .Font = text, .Tab = number, .CharNum = number or text

Remarks

Inserts a symbol at the insertion point. Note that InsertSymbol does not insert
a SYMBOL field as in Word for Windows version 2.x. The arguments for the InsertSymbol statement correspond to the options in the Symbol dialog box (Insert menu).

Argument

Explanation

.Font

The name of the font containing the symbol. Names of decorative fonts appear in the Font box in the Symbol dialog box.


Argument

Explanation

.Tab

Specifies which tab to select when you display the Symbol dialog box with a Dialog or Dialog() instruction:

0 (zero) Symbols tab

1 Special Characters tab

.CharNum

The sum of 31 and the number corresponding to the position of the symbol on the table of symbols, counting from left to right. For example, to specify an omega ( W) at position 56 on the table of symbols in the Symbol font, set .CharNum to 87.


Example

This example inserts a double-headed arrow at the insertion point:


InsertSymbol .Font = "Symbol", .CharNum = "171"

See Also

Chr$()