Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I would like to set formula that includes a string variable in VBA. The following code caused "Runtime error 1004 Application-defined or Object-defined error" dim strRow_Number as String strRow_Number = "100" ActiveCell.FormulaR1C1 = "=SUM(R[1]C[-2]:R[" & strRow_Number & "]C[-2])" How can I set the formula with variables??? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using a variable spreadsheet reference in a formula | Excel Discussion (Misc queries) | |||
Variable column reference in formula | Excel Discussion (Misc queries) | |||
XL how to change a cell reference in a formula to variable value? | Excel Worksheet Functions | |||
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. | Excel Worksheet Functions | |||
Problem with =sum(offset(cell reference,w,x,y,z). I want cell reference to be variable | Excel Worksheet Functions |