ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Is it possible to display the number of characters in a cell (https://www.excelbanter.com/excel-discussion-misc-queries/53510-possible-display-number-characters-cell.html)

Paul K.

Is it possible to display the number of characters in a cell
 
I would like to click on a cell and obtain a character count. Is it possible?

Bob Phillips

Is it possible to display the number of characters in a cell
 
'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not IsEmpty(Target.Value) Then
MsgBox Len(Target.Value)
End If
End Sub

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Paul K." wrote in message
...
I would like to click on a cell and obtain a character count. Is it

possible?



Paul K.

Is it possible to display the number of characters in a cell
 
Bob:
Thank you for your help, it works great, this is going to be a great time
saver today!
Paul

"Bob Phillips" wrote:

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not IsEmpty(Target.Value) Then
MsgBox Len(Target.Value)
End If
End Sub

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Paul K." wrote in message
...
I would like to click on a cell and obtain a character count. Is it

possible?





All times are GMT +1. The time now is 11:51 PM.

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