I've been trying to figure out how I can separate two columns of data on a worksheet into rows, using the following format.
From:
To:
I was able to figure out a portion of this (seperating and transposing the names in Column B) from another post (linked below), but I can't figure out how to copy down the data in column A
Sub Vertical()
Dim i As Long, st As String
i = 1
Dim startP As Range
For Each r In Selection
If i = 1 Then
st = r.Text
i = 2
Else
st = st & "," & r.Text
End If
Next r
Set startP = Selection(1, 2)
ary = Split(st, ",")
i = 1
For Each a In ary
startP(i, 1).Value = a
i = i + 1
Next a
End Sub
Of course, the actual data is a long list of workspaces within our system and employees who work them. I just couldn't post that here.
Thank you, in advance!!!