Office - ActiveCell.Formula no resulta con variable

 
Vista:

ActiveCell.Formula no resulta con variable

Publicado por wfredo (1 intervención) el 24/10/2016 05:22:11
Alguien sabe porque no resulta la ultima instruccion ( ActiveCell.Formula = "=SUM(primerafila : utlimafila)")

1
2
3
4
5
6
7
8
9
10
11
Sub sumando()
'
    ActiveCell.Offset(-1, 0).Select
        ultimafila = ActiveCell.Address(False, False) 'guarda una ref del tipo A5
        Selection.End(xlUp).Select
         primerafila = ActiveCell.Address(False, False) 'guarda una ref del tipo A5
        Selection.End(xlDown).Select
        ActiveCell.Offset(1, 0).Select
      ActiveCell.Formula = "=SUM(primerafila : utlimafila)"
    
End Sub

Gracias

Saludos
Wfredo
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder