Hi Nilem,

I'm getting Compile error: Expected array in line 6 of the above code

x(i, 1) = Trim(sp(UBound(sp)))

Please help