franticman
New Member
- Joined
- Jan 22, 2021
- Messages
- 2
- Office Version
- 2019
- Platform
- Windows
Hello, I have been trying to copy a cell's formula into another cell maintaining the relative reference.
This works ok if the referenced cells in the formula are in the same worksheet. However, if the referenced cells are in a different worksheet, the formula is copied exactly as it is, i.e. without updating cell references.
Any thoughts?
VBA Code:
Cells(k, i).FormulaR1C1 = Cells(k+1, i).FormulaR1C1
This works ok if the referenced cells in the formula are in the same worksheet. However, if the referenced cells are in a different worksheet, the formula is copied exactly as it is, i.e. without updating cell references.
Any thoughts?