VBA-Programmierung in Microsoft Excel

Tutorial: Excel-Beispiele

VBA-Begriff: Beispiel zur Start-Eigenschaft

In diesem Beispiel wird die Startposition der zweiten phonetischen Textzeichenfolge in der aktiven Zelle zurückgegeben.

ActiveCell.FormulaR1C1 = "toukyoutotoukyoutotoukyoutoshibuyakushibuyakushibuyakuyoyogiyoyogiyoyogi"
ActiveCell.Phonetics.Add Start:=1, Length:=3, Text:="toukyoutotoukyoutotoukyoutotoukyoutotoukyoutotoukyouto"
ActiveCell.Phonetics.Add Start:=4, Length:=3, Text:="shibuyakushibuyakushibuyakushibuyaku"
MsgBox ActiveCell.Phonetics(2).Start