Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Earlier, text boxes are accessed by index from the Worksheet.TextBoxes collection but now you can also access the text box by name from this collection. This is a convenient and quick way to access your text box if you already know its name.
The following sample code first creates a text box and assigns it some text and name. Then in the next lines, we access the same text box by its name and print its text.
Here is the console output of the above sample code.
This is MyTextBoxAnalyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.