Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Separating Words From a Text String

Hi I am trying to separate word from a text string Damage,Scratch,F-F,In-Ops
into variables I have tried The Mid Function with Instr, but I am finding it
most difficult.
Can anybody help me please Thanks
Charles
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Separating Words From a Text String

in VBA the Split function will split the string on commas into a zero-based
array

Dim MyList() As String

MyList = Split("Damage,Scratch,F-F,In-Ops", ",")

For i = 0 To UBound(MyList)
Debug.Print MyList(i)
Next i



"vqthomf" wrote:

Hi I am trying to separate word from a text string Damage,Scratch,F-F,In-Ops
into variables I have tried The Mid Function with Instr, but I am finding it
most difficult.
Can anybody help me please Thanks
Charles

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
Conditional Formats to Find Words in Text String Daren Excel Worksheet Functions 9 February 27th 09 12:17 PM
How can I isolate the last two words in a text string? Steve Gibbs Excel Discussion (Misc queries) 7 November 28th 08 11:23 PM
Extracting the last set of words from a text string IPerlovsky Excel Worksheet Functions 14 March 2nd 07 02:47 AM
How do I do a multiple search using key words in a text string patricia tipp Excel Discussion (Misc queries) 1 February 28th 06 05:01 PM
Help - Separating numbers appearing on the right of a text string Faz1 Excel Worksheet Functions 3 December 14th 05 02:38 PM


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