Thread
:
SUM in VBA
View Single Post
#
1
Posted to microsoft.public.excel.programming
Gary''s Student
external usenet poster
Posts: 11,058
SUM in VBA
In the worksheet:
=SUM(Sheet1!A1:Sheet1!A13)
works just fine, giving the sum of cells.
In VBA:
Dim i As Variant
i = Application.SUM(Sheet1!A1:Sheet1!A13) just give a compile error.
Why?
--
Gary's Student
Reply With Quote
Gary''s Student
View Public Profile
Find all posts by Gary''s Student