Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I need to write a macro that will sum all of the values above the selected cell. Rows above cell are variable, so it has to be flexible. Below is my code. I believe the sum formula will be where the ***** are. Any help would be appreciated. Thanks. Range("E1").Select Selection.End(xlDown).Select ReportLastRow = ActiveCell.Row ActiveCell.Offset(rowOffset:=1, columnoffset:=0).Activate ActiveCell.FormulaR1C1 = _ "Total" ActiveCell.Offset(rowOffset:=0, columnoffset:=1).Activate ActiveCell.FormulaR1C1 = ***** -- mkerstei ------------------------------------------------------------------------ mkerstei's Profile: http://www.excelforum.com/member.php...o&userid=25688 View this thread: http://www.excelforum.com/showthread...hreadid=548761 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 doesnt show Y-axis values when the values are small. | Charts and Charting in Excel | |||
Exclude #N/A values and Return Numeric values to consecutive cells in Single Row | Excel Worksheet Functions | |||
Search/Filter to find values in another range based on two cell values | Excel Programming | |||
How do I search thr'o column and put unique values in differnt sheet and sum corresponding values in | Excel Programming | |||
Predict Y-values on new X-values based on other actual X and Y values? | Excel Programming |