I have been reading about the function here: http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx However, it doesn't appear to be able to split a string up at multiple places.
The above is what I am working with. avarSplit is an array which contains 2 values after I split it once.![]()
Dim avarSplit As Variant LastRow = Cells(Rows.Count, "Y").End(xlUp).Row For x = 2 To LastRow Range("Y" & LastRow).Select avarSplit = Split(Range(ActiveCell.Value, "CC") avarSplit = Split(Range(ActiveCell.Value, "CD") Next x
If my string was someTextCCsomeOtherText and I did
Then I would get an array like ("someText", "someOtherText"). From my tests I am not able to get an in between value.![]()
avarSplit= Split(Range(ActiveCell.Value, "CC")
Example: someTextCCsomeOtherTextCDsomeMoreText
where I need to extract the someOtherText. Does anyone have a good way to do this?











LinkBack URL
About LinkBacks
Register To Reply
Bookmarks