A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Do you need to use VBA?
Formula in B2: =LEFT(A2,FIND("-",A2,1)-1)
Formula in C2: =MID(A2,FIND("-",A2,1)+1,999)
But if you want to use VBA
Sub extract()
Dim r As Long, dashpos As Long, m As Long
Dim ws As Worksheet
Set ws = Worksheets("Sheet1")
m = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row
For r = 2 To m
dashpos = InStr(1, Cells(r, 1), "-")
Cells(r, 2).Value = Left(Cells(r, 1), dashpos - 1)
Cells(r, 3).Value = Mid(Cells(r, 1), dashpos + 1)
Next
End Sub
Regards
Murray