Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to know how to use the standard Excel
formulas in VBA. For example, one function that I am trying to use is the average function. When I record a macro following the steps to perform this function it gives me the following: ActiveCell.FormulaR1C1 = "=AVERAGE(R[-31]C:R[-1]C)" The catch is that the column I need to average will vary in size. I can store the size of the column by indexing. My question is how do I place this variable in the formula above to calculate the average? Is it possible or is there another format that must be used? Any help would be greatly appreciated. Thanks, Jeff |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting # of Formulas in a column with formulas and entered data | Excel Worksheet Functions | |||
ms-excel guidence notes, complete formulas in excel, How to runmacros in Ms excel | Excel Discussion (Misc queries) | |||
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP | Excel Worksheet Functions | |||
Copying formulas from Excel 2003 to Excel 2007 | Excel Discussion (Misc queries) | |||
Formulas not evaluated, Formulas treated as strings | Excel Discussion (Misc queries) |