If I have a cell selected with text in it, is there a way to count how many characters it has via vb. How about characters and spaces?
Thank you.
If I have a cell selected with text in it, is there a way to count how many characters it has via vb. How about characters and spaces?
Thank you.
Last edited by luv2glyd; 02-19-2011 at 12:53 PM.
You either quit or become really good at it. There are no other choices.
How about...
If you want to do the active cell then update withSub CountCell() Dim rng As Range Dim ans As Long Set rng = Sheets("Sheet1").Range("A1") ans = Len(rng) MsgBox ans End Sub
Set rng = ActiveCell
Last edited by DonkeyOte; 02-19-2011 at 12:07 PM. Reason: corrected missing tag
HTH
Regards, Jeff
Great! Thank you.
You're welcome...Glad it helped
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks