Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

How do I display character count on the status bar?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
user061803 - 15 May 2008 21:38 GMT
Hello -

I need the counter in the status bar that will show me how many characters
are in each cell.
Billy Liddel - 16 May 2008 12:00 GMT
Right-Click the worksheet tab and choose View Code, then copy the following
code

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
c = Len(ActiveCell)
Application.StatusBar = c & " characters"
End Sub

Peter

> Hello -
>
> I need the counter in the status bar that will show me how many characters
> are in each cell.
Billy Liddel - 16 May 2008 19:48 GMT
You should also use the following

Private Sub Worksheet_Deactivate()
Application.StatusBar = ""
End Sub

and in the workbook module:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.StatusBar = ""
End Sub

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Application.StatusBar = ""
End Sub

Private Sub Workbook_Deactivate()
Application.StatusBar = ""
End Sub

Just to tidy things up

Peter

> Right-Click the worksheet tab and choose View Code, then copy the following
> code
[quoted text clipped - 10 lines]
> > I need the counter in the status bar that will show me how many characters
> > are in each cell.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.