I am trying get the sum of values in a column and then insert that value into a cell.
I tried the following but cannot get the MyValue to get the sum of the Range.
Dim MyRange As Range
Dim MyValue As Integer
Set MyRange = Range("E:E")
Set MyValue = Sum(MyRange)
'
End Sub
I tried the following but cannot get the MyValue to get the sum of the Range.
Dim MyRange As Range
Dim MyValue As Integer
Set MyRange = Range("E:E")
Set MyValue = Sum(MyRange)
'
End Sub