Returns or sets the text of the specified Characters object.
[Visual Basic] Property Text As String [C#] string Text { get; set; } [C++] __property String* get_Text(); __property void set_Text(String* ); [JScript] function get Text() : String function set Text(String);
This example changes the substring of cell B10
[C#]
book.Worksheets[1].Range["B10"].Characters[3,2].Text = "new text";
[Visual Basic]
book.Worksheets(1).Range("B10").Characters(3,2).Text = "new text"
[C++]
IRange* range = book->Worksheets->Item[1]->Range->Item[S"B10"];
range->Characters->Item[3,2]->Text = S"new text";
ICharacters Interface | NativeExcel Namespace | IRange.Characters Property