I am new to VBA Macro. I am trying to create a code that converts "Text to column" identifying semicolon as delimited. There is data in column has which has 1 values with ; as separator in between
Actual data
I want the macro to convert this into text to column the data after semicolon should move in next column with heading as KPI
Desired output should be like this in below image
Desired output
is it possible after text to column the new column name should be KPI as shown in desired output. Please guide I tried with below code nothings works out.
Sub TextToCol1()
Dim ws As Worksheet
Set ws = ActiveWorkbook.Worksheets("Exp")
ws.Range("A1").End(xlUp).TextToColumns , Semicolon:=True
End Sub

