spacecaptainsuperguy
Board Regular
- Joined
- Dec 30, 2004
- Messages
- 202
- Office Version
- 365
- Platform
- Windows
I'm working on setting up a report to be generated by a macro and in one particular cell I want to incorporate both text and numbers in a cell. Earlier in the macro, I've defined CLoan1 as Long and assigned it a value. The line of code I'm trying to get to work is the following:
ActiveCell.FormulaR1C1 = "=""Total available for borrowing or limit of "" & Text(CLoan1, ""$#,###,000"")"
But I can't figure out how to word it so that the Text formula uses the value of CLoan1 to not produce an #NAME? error.
Any suggestions on how I can do this or a better line of code to get the end result?
Thanks in advance
ActiveCell.FormulaR1C1 = "=""Total available for borrowing or limit of "" & Text(CLoan1, ""$#,###,000"")"
But I can't figure out how to word it so that the Text formula uses the value of CLoan1 to not produce an #NAME? error.
Any suggestions on how I can do this or a better line of code to get the end result?
Thanks in advance