piannetta
New Member
- Joined
- Aug 27, 2002
- Messages
- 45
- Office Version
- 365
- Platform
- Windows
Hi, I'm writing a macro that will scan a list of numbers and post total formulas at certain points. Because the list size is dynamic, the point where the formula is placed may change. The formula needs to refer to the cell adjacent to the end of the list, as well as refer to a cell elsewhere. This last cell is at a fixed point, but of course the formula property only allows A1 cell refs and the formular1c1 only allows RC references.
The formula I'm trying to write is:
ActiveCell.FormulaR1C1 = "=RC[-1]/($E$27+$L$27+$M$27)"
If anyone can provide a tip on dealing with this, I'd appreciate it. In the meantime, I'll keep plodding along.
Thanks,
Pete
The formula I'm trying to write is:
ActiveCell.FormulaR1C1 = "=RC[-1]/($E$27+$L$27+$M$27)"
If anyone can provide a tip on dealing with this, I'd appreciate it. In the meantime, I'll keep plodding along.
Thanks,
Pete