Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
as well as the two responses already received, you could also use the SPLIT
function This is particularly useful if you want to see how many items are in the text eg Option Explicit Sub SplitDemo() Dim text As String Dim var As Variant text = "There are four words" var = Split(text, " ") MsgBox "text has " & UBound(var, 1) + 1 & " items" Dim index As Long index = UBound(var, 1) MsgBox "The #" & index & " item =" & var(index) End Sub "jten" wrote: I am looking for the last occurrence of a blank in a text string so that I can parse the string |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find Multiple Occurence Of Text In A Column | Excel Programming | |||
Excel-Match 1st text character in a string to a known character? | Excel Worksheet Functions | |||
How to find the first occurence of any number in a string | Excel Programming | |||
Find last occurance of character in text string | Excel Worksheet Functions | |||
backwards find function to find character in a string of text | Excel Programming |