Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default string length

hello to you all....

well im sorry to disturb you with something so easily answered. i got
string and need to know the number of caracter it contain....

as in "I need help" is 11 caracter long .... blank space must b
counted.

how do i code this (in VB) ?

Thank

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default string length

Sub FindLength()
Dim StringLength As Integer
StringLength = Len("I need help")
MsgBox StringLength
End Su

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default string length

geez i knew it was something easy... i was trying with :

length(expression)

thank for the help.... 3-4 year without programming are taking thei
due on my skill... i'm soo ashamed...

but still thank a lot for the help ma

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default string length

sStr = "A B C D"
lVar = len(sStr)

--
Regards,
Tom Ogilvy



"Yan Robidoux " wrote in
message ...
hello to you all....

well im sorry to disturb you with something so easily answered. i got a
string and need to know the number of caracter it contain....

as in "I need help" is 11 caracter long .... blank space must be
counted.

how do i code this (in VB) ?

Thanks


---
Message posted from http://www.ExcelForum.com/



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
Zero length string on chart Joe M. Charts and Charting in Excel 1 May 6th 10 03:16 PM
Zero-Length string vs Zero (also a valid value) [email protected] Excel Worksheet Functions 2 January 24th 09 02:18 PM
Finding a string of unknown length in a string of unknown length, Help! Hankjam[_2_] Excel Discussion (Misc queries) 8 July 3rd 08 06:49 PM
String length jxbeeman Excel Discussion (Misc queries) 1 January 10th 08 07:01 PM
Counting string length The Wonder Thing[_3_] Excel Programming 4 August 3rd 04 09:23 PM


All times are GMT +1. The time now is 03:18 AM.

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

About Us

"It's about Microsoft Excel"