Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Searching for a unique charater in a string, vb
Use Instr. like
If Instr(vcsel_name, "VO") 0 Then ' it is in there Else 'it is not End If -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Azazal " wrote in message ... hello, Does anyone know how to search for a unique charater in a string. For example, Dim vcsel_name as string ' vcsel_name is a variable and changes as I compile my data, I need to separate the data according to the last two characters of the string. Therefor I need something like if vcsel_name.find = "VO" then (body of code) end if obviously I made up the .find function, but can anyone tell me the proper function I could use to accomplish this task. Thanks --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
help on sumproduct() - sum by searching for a common sub string in | Excel Worksheet Functions | |||
Searching for string in other cells | Excel Worksheet Functions | |||
searching and summing using string within cell | Excel Discussion (Misc queries) | |||
Searching a String | Excel Programming | |||
searching a string with a partial string | Excel Programming |