Formula with an ActiveCell
Hi, I am trying to input a formulae into a cell that
references to an activeCell. Currently this is the formulae I have in there, but it's giving me errors. Any thoughts on how I can do this? ActiveCell.FormulaR1C1 = "=Cells(32,ActiveCell.Column).Select*(R16C4)*(R9C3 )" |
Formula with an ActiveCell
ActiveCell.FormulaR1C1 = _
"=" & Cells(32,ActiveCell.Column).Address(True,True,xlR1 C1) _ & "*(R16C4)*(R9C3)") -- Regards, Tom Ogilvy Sok Hong wrote in message ... Hi, I am trying to input a formulae into a cell that references to an activeCell. Currently this is the formulae I have in there, but it's giving me errors. Any thoughts on how I can do this? ActiveCell.FormulaR1C1 = "=Cells(32,ActiveCell.Column).Select*(R16C4)*(R9C3 )" |
Formula with an ActiveCell
You cannot do that. ActiveCell is a VBA object - not recognised by
normal Excel. You can only access the active cell at runtime with something like :- Range("A1").Value = ActiveCell.Value Regards BrianB ------------------------------------------ "Sok Hong" wrote in message ... Hi, I am trying to input a formulae into a cell that references to an activeCell. Currently this is the formulae I have in there, but it's giving me errors. Any thoughts on how I can do this? ActiveCell.FormulaR1C1 = "=Cells(32,ActiveCell.Column).Select*(R16C4)*(R9C3 )" |
All times are GMT +1. The time now is 09:16 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com