Promedio Excel

You might also like

You are on page 1of 1

'PROMEDIO

Private Sub CommandButton10_Click()


Dim findit As Range
Dim UltimaFila As Integer
Workbooks(".xlsm").Sheets("1").Activate
ColumnaTrabajo = 2
lastrow = Workbooks("Maestro.xlsm").Sheets("1").Range("b:b").End(xlDown).Ro
w 'numero columnas con contenido

For i = 15950 To lastrow


With Workbooks(".xlsm").Sheets("1").Range("B2:B" & lastrow)
Dim C As Range
Set C = .Find(What:=)
If Not C Is Nothing Then
inicio = C.Address
Do
ThisWorkbook.Sheets("PPonderado").Cells(Rows.count, 1)
.End(xlUp).Offset(1, 0).Value = C
Set C = .FindNext(C)
Loop While Not C Is Nothing And C.Address <> inicio
End If
End With
next i

You might also like