Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Count Words in a Textbox


Hi,

I would like to count the number of words in a textbox (Comments)
(Forms) and display it in another textbox (WC) (wordcount should be
dynamic - as the user keeps typing, result should get updated)

Girish:)


--
Baapi


------------------------------------------------------------------------
Baapi's Profile: http://www.excelforum.com/member.php...o&userid=27333
View this thread: http://www.excelforum.com/showthread...hreadid=560506

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Count Words in a Textbox

Private Sub Textbox1_Change()
Dim numwords as Long
numwords = Len(Textbox1.Text) -
len(replace(Application.Trim(Textbox1.Text)," ","")) + 1
Textbox2.Text = numWords
End Sub

--
Regards,
Tom Ogilvy


"Baapi" wrote in
message ...

Hi,

I would like to count the number of words in a textbox (Comments)
(Forms) and display it in another textbox (WC) (wordcount should be
dynamic - as the user keeps typing, result should get updated)

Girish:)


--
Baapi


------------------------------------------------------------------------
Baapi's Profile:
http://www.excelforum.com/member.php...o&userid=27333
View this thread: http://www.excelforum.com/showthread...hreadid=560506



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count the words in a cell Elton Law[_2_] Excel Worksheet Functions 8 May 20th 10 09:54 PM
Count down to Words / Text Champ Excel Discussion (Misc queries) 5 December 30th 09 06:39 PM
Count words in spreadsheets Robyn P Excel Discussion (Misc queries) 2 November 20th 06 09:54 AM
Identify and count words Doman Excel Discussion (Misc queries) 0 July 24th 06 01:16 PM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM


All times are GMT +1. The time now is 07:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"