Para elsa matilde gracias...
Me gustaría saber como puedo mantener un valor en tiempo de ejecion para poder hacer una fórmula el valor que quiero como f4 por así decirlo es la j espero funcione gracias
Range("D9").Select
Selection.End(xlToRight).Select
lim = ActiveCell.Column
cells(35, 1).Select
Col = 4
reng = 35
For j = 9 To lim + 4
cells(reng, 1) = cells(9, Col) & cells(9, Col + 1)
If cells(9, Col) < 9 Then
cells(reng, 1).NumberFormat = "0-0"
Else
cells(reng, 1).NumberFormat = "00-00"
End If
cells(reng, 2).FormulaR1C1 = "= R13C" & Col + 1
cells(reng, 2).Select
If reng - 34 = lim - 4 Then
fila = reng - 34
cells(reng + 1, 2).FormulaR1C1 = "=SUM(R35C:R" & reng & "C2)"
cells(reng + 1, 2).Select
End If
'guarda(j) = ActiveCell.Value
reng = reng + 1
Col = Col + 1
cells(reng - 1, 3).FormulaR1C1 = "= (RC[-1]/R" & j & "C[-1])*R29C3"
Next j
Range("D9").Select
Selection.End(xlToRight).Select
lim = ActiveCell.Column
cells(35, 1).Select
Col = 4
reng = 35
For j = 9 To lim + 4
cells(reng, 1) = cells(9, Col) & cells(9, Col + 1)
If cells(9, Col) < 9 Then
cells(reng, 1).NumberFormat = "0-0"
Else
cells(reng, 1).NumberFormat = "00-00"
End If
cells(reng, 2).FormulaR1C1 = "= R13C" & Col + 1
cells(reng, 2).Select
If reng - 34 = lim - 4 Then
fila = reng - 34
cells(reng + 1, 2).FormulaR1C1 = "=SUM(R35C:R" & reng & "C2)"
cells(reng + 1, 2).Select
End If
'guarda(j) = ActiveCell.Value
reng = reng + 1
Col = Col + 1
cells(reng - 1, 3).FormulaR1C1 = "= (RC[-1]/R" & j & "C[-1])*R29C3"
Next j
1 respuesta
Respuesta de Elsa Matilde
1