Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Sum Range
Hi,
I selected this range Range(ActiveCell.Offset(-lastrow + 2, 0), ActiveCell.Offset(-2, 0)) and I want to put its Sum 2 cells down my code so far is Dim lastrow As Long lastrow = Cells(Rows.Count, 1).End(xlUp).Row Range("B" & lastrow + 2).Select Do Until Selection.Offset(-38, 0) = "" Range(ActiveCell.Offset(-lastrow + 2, 0), ActiveCell.Offset(-2, 0)) Selection.Offset(0, 1).Select Loop -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/201002/1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Range Question / error 1004: method Range of object Worksheet has failed | Excel Programming | |||
Range.Find returns cell outside of range when range set to single cell | Excel Programming | |||
how to? set my range= my UDF argument (range vs. value in range) [advanced?] | Excel Programming |