Private Sub CallDrop

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Private Sub CallDrop_Click() Range("A53").Select ultimo = Range("A53").End(xlDown).Row MsgBox " = " & ultimo & "." Range("B52").

Select ultimo2 = Range("B52").End(xlByColumns).Column MsgBox " = " & ultimo2 & "." i=2 Z = 200 y = 52 For Each Cella In Range("A53:A" & ultimo) For Each Cellb In Range("B52:B" & ultimo2) Cells(Z, 5) = Cella(a + 1, 1) ''''''''''''''''' Cells(y, i).Select Selection.Copy Cells(Z, 6).Select ActiveSheet.Paste ''''''''''''''''''' Cells(Z, 7) = Cella(a + 1, i) i = i + 1 'aumento rango fecha y datos Z = Z + 1 'aumento lugar para guardar datos Next i=2 y = 52 NextEnd Sub

Private Sub Inaccesibilidad_Click() Range("A4").Select ultimo = Range("A4").End(xlDown).Row 'MsgBox " = " & ultimo & "." Range("B3").Select ultimo2 = Range("B3").End(xlByColumns).Column 'MsgBox " = " & ultimo2 & "." i=2 x=0 Z = 200 y=3 For Each Cella In Range("A4:A" & ultimo) For Each Cellb In Range("B2:B" & ultimo2) Cells(Z, 1) = Cella(a + 1, 1) Cells(y, i).Select Selection.Copy Cells(Z, 2).Select ActiveSheet.Paste Cells(Z, 3) = Cella(a + 1, i) i = i + 1 'aumento rango fecha y datos Z = Z + 1 'aumento lugar para guardar datos Next i=2 x=0 y=3 NextEnd Sub

You might also like