Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim linha, col As Long
linha = 2
col = 2
While Plan1.Cells(1, col).Value <> ""
Plan2.Cells(linha, 1).Value = Plan1.Cells(1, col).Value
Plan2.Cells(linha, 2).Value = Plan1.Cells(2, col).Value
col = col + 1
linha = linha + 1
Wend
End Sub
Postado : 20/01/2018 4:45 am