I have ben playing with a bit of code to split up a string and take the part string for another purpose.
The code below, finds the bit of string I want but what I really need to do is then ammend the initial string to make it minus the part string.
The code above does take the first part of the string up to a space and puts it in K2.
I'm now tryimng to find a way to make
but i can' find a way to make that work
any ideas would be really helpful
thanks
The code below, finds the bit of string I want but what I really need to do is then ammend the initial string to make it minus the part string.
HTML:
Dim myStr As String
myStr = Range("A2").Value
Range("K2").Value = Split(myStr, " ")(0)
The code above does take the first part of the string up to a space and puts it in K2.
I'm now tryimng to find a way to make
Code:
mystr=mystr -Split(myStr, " ")(0) 'doesn't work
but i can' find a way to make that work
any ideas would be really helpful
thanks