Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I need to use VBA code to define a range and then sum the values of the cells in that range and place the answer in another cell. So far I have this but it does not work! I have defined ReportRange as the range to be summed and RangeValue as Long to be used for the result Set ReportRange = Sheets(2).Range(Cells(7, 24), Cells(EndDate, 24)) RangeValue = "=Sum(" & ReportRange.Address(True, False) & ")" Sheets(16).Select Sheets(16).Range("d12").Value = RangeValue Where am I going wrong please? Alan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Summing a range of cells based on criteria in another range | Excel Worksheet Functions | |||
summing a range in a UDF | Excel Programming | |||
Summing a Range With N/A's | Excel Discussion (Misc queries) | |||
Summing between Range | Excel Discussion (Misc queries) | |||
Summing a range. Please Help! | Excel Programming |