I have a matrix of aprox 5000 rows that looks something as seen on im1 (not the real matrix)
Basically I coded something that inserts 3 empty columns to the right of wire/hose/type with the respective names "Wire, Size and Color" written in the top cell of the column
The column Wire/hose/Type contains 3 types of information the first would be the 4 character long string that start with a number (like 3FEC or 4LOP). this is a pattern the second is a number like 2.5 or 0.50 the third is the string that contains one or two colors (GN or GN/BN for example)
What I want to do is Identify the first type of information in every cell of the column and paste it on "Wire", to paste the second type of information on "size" and the third on "color" and finally deleting the column Wire/hose type so finally it looks something as seen on im2:
If anyone could please guide me a little on filling at least the first parameter so i can fill the rest with the same reasoning I would really appreciate it, don't mean to sound cliche but I'm kind of new in this coding environment
my code so far looks like this:
Sheet3.Activate
For i = 1 To 4
celltxt2 = ActiveSheet.Cells(1, i).Text
If InStr(1, celltxt2, "Wire/Hose/Tube type") Then
Columns(i + 1).EntireColumn.Select
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
End If
Next i
o = 1
Do While IsEmpty(Cells(1, o)) = False
o = o + 1
Loop
Set wr = Cells(1, o)
wr.Value = "Wire"
Set sz = Cells(1, o + 1)
sz.Value = "Size"
Set clr = Cells(1, o + 2)
clr.Value = "Color"
Thank you!