Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How can I break down text in letters using VBA

Hi Berend,

As an example try:

Sub Tester()
Dim sStr As String
Dim i As Long

sStr = "FOX"

For i = 1 To Len(sStr)
MsgBox Mid(sStr, i, 1)
Next
End Sub

---
Regards,
Norman

"Berend Botje " wrote in
message ...
Hi,

I have a Excel sheet in which text is to be typed by the user. The text
must be broken down in single letters, which the program recognises.

For example:

User types: Fox

Program:
1: Take first letter
2: Check what letter it is
3: Use letter in script (for example a if then statement)
4: Take next letter
5: Repeat steps 2 to 5 untill all text is analysed

Can anyone tell me how to do this? The breaking down of the text, that
is.....

Thanks beforehand,

Berend Botje


---
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
break up cell text into two cells w text chrissyb Excel Discussion (Misc queries) 0 November 30th 06 05:53 PM
break up cell text into two cells w text Brad Excel Discussion (Misc queries) 0 November 30th 06 05:41 PM
break up cell text into two cells w text chrissyb Excel Discussion (Misc queries) 0 November 30th 06 05:24 PM
Excel pie chart title words break to next line between letters? sweetsweed Charts and Charting in Excel 0 October 9th 06 07:10 PM
break up text Ciara Excel Discussion (Misc queries) 6 April 30th 06 02:17 PM


All times are GMT +1. The time now is 11:55 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"