Option Explicit
Sub GetDataFromAnotherWorkbook()
'
' constants
' source
Const ksWBSource = "Copy,Paste,Transpose in VBA loop -Thank you so much! - Source (for mytheresa at chandoo.org).xlsm"
Const ksWSSource = "Hoja1"
Const ksRngSource = "X Source1 Source2 Source3"
' target
Const ksWSTarget = "Hoja1"
Const ksRngTarget = "X Target1 Target2 Target3"
'
' declarations
Dim wbS As Workbook, wsS As Worksheet, rngS(3) As Range
Dim wbT As Workbook, wsT As Worksheet, rngT(3) As Range
Dim I As Long, J As Long, K As Integer, A() As String
'
' start
' source
Set wbS = Workbooks(ksWBSource)
Set wsS = wbS.Worksheets(ksWSSource)
A = Split(ksRngSource)
For K = 1 To 3
With wsS
Set rngS(K) = .Range(A(K))
End With
Next K
' target
Set wbT = ThisWorkbook
Set wsT = wbT.Worksheets(ksWSTarget)
A = Split(ksRngTarget)
For K = 1 To 3
With wsT
Set rngT(K) = .Range(A(K))
End With
Next K
'
' process
For K = 1 To 3
With rngT(K)
For I = 1 To .Rows.Count
For J = 1 To .Columns.Count
.Cells(I, J).Value = rngS(K).Cells(J, I).Value
Next J
Next I
End With
Next K
'
' end
' source
For K = 1 To 3
Set rngS(K) = Nothing
Next K
Set wsS = Nothing
Set wbS = Nothing
' target
For K = 1 To 3
Set rngT(K) = Nothing
Next K
Set wsT = Nothing
Set wbT = Nothing
'
End Sub