Hello
Im trying to count the total characters in a textbox
This works great but doesnt count the spaces in the count.![]()
Please Login or Register to view this content.
Can anyone suggest how to count all characters inside a textbox?
Thanks
Hello
Im trying to count the total characters in a textbox
This works great but doesnt count the spaces in the count.![]()
Please Login or Register to view this content.
Can anyone suggest how to count all characters inside a textbox?
Thanks
Maybe
![]()
Please Login or Register to view this content.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
How about![]()
Please Login or Register to view this content.
It doesn't count them since your code is excluding the spaces from the text box
Use
lblWord_count.Caption = Len(txtbox_textcheck) & " chars used."
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
Thanks this works perfectly :-)
You're welcome.
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
New quick method:
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
Or you can use this way:
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.
Glad to help & thanks for the feedback.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks