Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I get an error message when I run this code:
ActiveCell.FormulaR1C1 = "=round(R-1C*RC[7],2)" I need to use the cell directly above the cell the where the pointer is. If I don't make it an absolute reference it works fine but I need it to be an absolute as the formula gets copied down. Also, this gets used threw out the routine so I can't hard set the cell above. Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveCell.FormulaR1C1 = "=round(R[-1]C*RC[7],2)"
"SLP" wrote: Hi, I get an error message when I run this code: ActiveCell.FormulaR1C1 = "=round(R-1C*RC[7],2)" I need to use the cell directly above the cell the where the pointer is. If I don't make it an absolute reference it works fine but I need it to be an absolute as the formula gets copied down. Also, this gets used threw out the routine so I can't hard set the cell above. Thanks. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveCell.FormulaR1C1 = "=round(R" & activecell.row & "C*RC[7],2)"
-- Kind regards, Niek Otten Microsoft MVP - Excel "SLP" wrote in message ... Hi, I get an error message when I run this code: ActiveCell.FormulaR1C1 = "=round(R-1C*RC[7],2)" I need to use the cell directly above the cell the where the pointer is. If I don't make it an absolute reference it works fine but I need it to be an absolute as the formula gets copied down. Also, this gets used threw out the routine so I can't hard set the cell above. Thanks. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
of course that should have been
ActiveCell.FormulaR1C1 = "=round(R" & activecell.row - 1 & "C*RC[7],2)" -- Kind regards, Niek Otten Microsoft MVP - Excel "Niek Otten" wrote in message ... ActiveCell.FormulaR1C1 = "=round(R" & activecell.row & "C*RC[7],2)" -- Kind regards, Niek Otten Microsoft MVP - Excel "SLP" wrote in message ... Hi, I get an error message when I run this code: ActiveCell.FormulaR1C1 = "=round(R-1C*RC[7],2)" I need to use the cell directly above the cell the where the pointer is. If I don't make it an absolute reference it works fine but I need it to be an absolute as the formula gets copied down. Also, this gets used threw out the routine so I can't hard set the cell above. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
R1C1 Formula | Excel Programming | |||
Formula R1C1 | Excel Programming | |||
Addition string from input box in to a formula (eg;R1C1 Formula) | Excel Programming | |||
Combining R1C1 and absolute reference in SUMPRODUCT in VBA | Excel Programming | |||
Absolute reference in R1C1 notation | Excel Programming |