Hi,
Try this:
Sub IMT(): Dim S As String, T As String, I(5), J(5)
Dim h As Integer, k As Integer, n As Integer, r As Long
r = Range("A" & Rows.Count).End(xlUp).row
For r = 2 To r
S = Range("I" & r): T = Range("J" & r)
For k = 1 To 3
h = InStr(1, S, "|"): n = InStr(1, T, "|")
I(k) = Left(S, h - 1): S = Right(S, Len(S) - h)
J(k) = Left(T, n - 1): T = Right(T, Len(T) - n)
Next k
I(k) = S: J(k) = T
For k = 1 To 3
Range("I" & r) = I(k): Range("J" & r) = J(k)
Range("I" & r + 1).EntireRow.Insert: r = r + 1
Next k
Range("I" & r) = I(k): Range("J" & r) = J(k)
Next r
End Sub
Directions for running the routine(s) just supplied
Copy the code to the clipboard
Press ALT + F11 to open the Visual Basic Editor.
Open a macro-enabled Workbook or save your Workbook As Macro-Enabled
Select “Module” the Insert menu
Type "Option Explicit" then paste the code under it
With the cursor between Sub and End Sub press F5 (F8 to Single Step)
OR
Press ALT + Q to close the code window.
Bookmarks