stephicohu
New Member
- Joined
- Jan 27, 2023
- Messages
- 32
- Office Version
- 365
- Platform
- MacOS
Hi guys!
I have a simple question to ask. I got this code from this message board last year. The question is I don't remember what this code does?
The code is the following:
StrFormula = "= IFERROR('" & SourceMonth & "'!R" & FirstRow1 & "C" & SourceColumn & ",0)"
Sheets(TargetMonth).Cells(TargetRow, TargetColumn).Formula = StrFormula
Sheets(TargetMonth).Activate
I am guessing that StrFormula lays out the operand of IFERROR and is taking the sourcemonth data and moving it to the targetmonth. What I don't know is what R does or C. Can someone help me to understand this code?
I would appreciate this
Stephanie Cohu
I have a simple question to ask. I got this code from this message board last year. The question is I don't remember what this code does?
The code is the following:
StrFormula = "= IFERROR('" & SourceMonth & "'!R" & FirstRow1 & "C" & SourceColumn & ",0)"
Sheets(TargetMonth).Cells(TargetRow, TargetColumn).Formula = StrFormula
Sheets(TargetMonth).Activate
I am guessing that StrFormula lays out the operand of IFERROR and is taking the sourcemonth data and moving it to the targetmonth. What I don't know is what R does or C. Can someone help me to understand this code?
I would appreciate this
Stephanie Cohu