In column BN I have data in the format 1000A-01-100. I would like to separate this into 3 columns using the "-" as the point of separation. Below is the code I found on the forums that I tried to use for this but I keep getting a runtime error "1004".
Any help would be appreciated
Code:
Sub SplitBrokerData()
Dim arr As Variant, i As Long
For i = 1 To Range("BN1").End(xlDown).Row
arr = Split(Cells(i, 1), "-")
Cells(i, 2).Resize(, UBound(arr) + 1) = arr
Next
End Sub
Any help would be appreciated