Jaymond Flurrie
Well-known Member
- Joined
- Sep 22, 2008
- Messages
- 898
- Office Version
-
- 2016
So, I have a string that says
-enter--tab-somerandomletters-tab--enter- (those tabs and enters are t-a-b and e-n-t-e-r not actual tabs and enters). Now, if I put this to a cell A1, I can use TextToColumns like
which makes it five different cells (B1:F1).
How about splitting it to a five element array? Is there any built-in function for that?
-enter--tab-somerandomletters-tab--enter- (those tabs and enters are t-a-b and e-n-t-e-r not actual tabs and enters). Now, if I put this to a cell A1, I can use TextToColumns like
Code:
range("a1").TextToColumns _
Destination:=Range("A1"), DataType:=xlDelimited, _
ConsecutiveDelimiter:=True, Other:=True, OtherChar:="-"
which makes it five different cells (B1:F1).
How about splitting it to a five element array? Is there any built-in function for that?