ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel Count characters in a textbox to display character count? (https://www.excelbanter.com/excel-programming/382805-excel-count-characters-textbox-display-character-count.html)

[email protected]

Excel Count characters in a textbox to display character count?
 
Hey,

How do I make it so Excel VBA counts the characters in a textbox
and displays a value in a message box? Thanks!


Doug Glancy[_7_]

Excel Count characters in a textbox to display character count?
 
If you mean a textbox from the drawing toolbar, this will do it:

MsgBox Worksheets(1).TextBoxes("Text Box 1").Characters.Count

hth,

Doug

wrote in message
ups.com...
Hey,

How do I make it so Excel VBA counts the characters in a textbox
and displays a value in a message box? Thanks!





All times are GMT +1. The time now is 09:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com