Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 2.06 KB

Word.Selection.InsertSymbol.md

File metadata and controls

61 lines (37 loc) · 2.06 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Selection.InsertSymbol method (Word)
vbawd10.chm158662820
vbawd10.chm158662820
Word.Selection.InsertSymbol
13f18c60-89e7-3ba7-1c4c-928b28f5e72a
06/08/2017
medium

Selection.InsertSymbol method (Word)

Inserts a symbol in place of the specified selection.

Syntax

expression. InsertSymbol( _CharacterNumber_ , _Font_ , _Unicode_ , _Bias_ )

expression Required. A variable that represents a Selection object.

Parameters

Name Required/Optional Data type Description
CharacterNumber Required Long The character number for the specified symbol. This value will always be the sum of 31 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 Variant The name of the font that contains the symbol.
Unicode Optional Variant True to insert the unicode character specified by CharacterNumber; False to insert the ANSI character specified by CharacterNumber. The default value is False.
Bias Optional Variant Sets the font bias for symbols. This argument is useful for setting the correct font bias for East Asian characters. Can be one of the WdFontBias constants. This argument may not be available to you, depending on the language support (U.S. English, for example) that you have selected or installed.

Remarks

If you don't want to replace the selection, use the Collapse method before you use this method.

Example

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

With Selection 
 .Collapse Direction:=wdCollapseStart 
 .InsertSymbol CharacterNumber:=171, _ 
 Font:="Symbol", Unicode:=False 
End With

See also

Selection Object

[!includeSupport and feedback]