1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
| Sub Copy_paste()
Dim ori As Range
Dim dest As Range
With ActiveSheet
Set dest = .Range("A920")
Set ori = .Range("A1:A919").Find("No of recorded shareholders", LookIn:=xlFormulas, lookat:=xlWhole)
For i = 0 To .Cells(ori.Row, .Cells.Columns.Count).End(xlToLeft).Column
dest.Offset(0, i) = ori.Offset(0, i)
Next i
Set dest = dest.Offset(1, 0)
Set ori = .Range("A1:A919").Find("BvDEP Independence Indicator", LookIn:=xlFormulas, lookat:=xlWhole)
For i = 0 To .Cells(ori.Row, .Cells.Columns.Count).End(xlToLeft).Column
dest.Offset(0, i) = ori.Offset(0, i)
Next i
Set dest = dest.Offset(1, 0)
Set ori = .Range("A1:A919").Find("Total Assets", LookIn:=xlFormulas, lookat:=xlWhole)
For i = 0 To .Cells(ori.Row, .Cells.Columns.Count).End(xlToLeft).Column
dest.Offset(0, i) = ori.Offset(0, i)
Next i
Set dest = dest.Offset(1, 0)
Set ori = .Range("A1:A919").Find("Gross Loans", LookIn:=xlFormulas, lookat:=xlWhole)
For i = 0 To .Cells(ori.Row, .Cells.Columns.Count).End(xlToLeft).Column
dest.Offset(0, i) = ori.Offset(0, i)
Next i
Set dest = dest.Offset(1, 0)
Set ori = .Range("A1:A919").Find("Total Deposits, Money Market and Short-term Funding", LookIn:=xlFormulas, lookat:=xlWhole)
For i = 0 To .Cells(ori.Row, .Cells.Columns.Count).End(xlToLeft).Column
dest.Offset(0, i) = ori.Offset(0, i)
Next i
Set dest = dest.Offset(1, 0)
Set ori = .Range("A1:A919").Find("Equity / Tot Assets", LookIn:=xlFormulas, lookat:=xlWhole)
For i = 0 To .Cells(ori.Row, .Cells.Columns.Count).End(xlToLeft).Column
dest.Offset(0, i) = ori.Offset(0, i)
Next i
Set dest = dest.Offset(1, 0)
Set ori = .Range("A1:A919").Find("Return On Avg Assets (ROAA)", LookIn:=xlFormulas, lookat:=xlWhole)
For i = 0 To .Cells(ori.Row, .Cells.Columns.Count).End(xlToLeft).Column
dest.Offset(0, i) = ori.Offset(0, i)
Next i
Set dest = dest.Offset(1, 0)
'Set ori = .Range("A1:A919").Find("SHAREHOLDERS", LookIn:=xlFormulas, lookat:=xlWhole)
'For i = 0 To .Cells(ori.Row, .Cells.Columns.Count).End(xlToLeft).Column
'dest.Offset(0, i) = ori.Offset(0, i)
'Next i
End With
End Sub |
Partager