VBA/Excel/Access/Word/Excel/Count
Версия от 16:33, 26 мая 2010; (обсуждение)
Count a range
Sub addAmtRel()
Set myRange = Range(ActiveCell, ActiveCell.End(xlUp)) " Substitute your range here
myCount = Application.Count(myRange)
ActiveCell.Formula = "=SUM(R[" & -myCount & "]C:R[-1]C)" " Substitute your cell address here
End Sub