Phonetics.Add Method (Excel)

Adds phonetic text to the specified cell.


expression. Add( _Start_ , _Length_ , _Text_ )

expression A variable that represents a Phonetics object.


Name Required/Optional Data Type Description
Start Required Long The position that represents the first character in the specified cell.
Length Required Long The number of characters from the Start position to the end of the text in the cell.
Text Required String Collectively, the characters that represent the phonetic text in the cell.


This example adds three phonetic text strings to the active cell. The example then sets the character type to Hiragana, sets the font color to blue, and sets the text to visible.

ActiveCell.FormulaR1C1 = "?????????" 
ActiveCell.Phonetics.Add Start:=1, Length:=3, Text:="??????" 
ActiveCell.Phonetics.Add Start:=4, Length:=3, Text:="????" 
ActiveCell.Phonetics.CharacterType = xlHiragana 
ActiveCell.Phonetics.Font.Color = vbBlue 
ActiveCell.Phonetics.Visible = True

See also

Phonetics Object