Bass71
MIS
- Jun 21, 2001
- 79
Hi,
I need to have a variable within a string. Are strings flexible enough to handle this? Instead of writing R2C4, I tried R + var + C4 but the output still treats it as text.
Range("J2").Select
Dim var As Variant
var = 2
Do Until ActiveCell(2, 0).Value = "0.395833333333333"
ActiveCell.FormulaR1C1 = _
"=IF(RC[-6]> R + var + C4 ,""Look"","""")"
ActiveCell.Offset(1, 0).Select
Loop
Thanks for your help.............RO
I need to have a variable within a string. Are strings flexible enough to handle this? Instead of writing R2C4, I tried R + var + C4 but the output still treats it as text.
Range("J2").Select
Dim var As Variant
var = 2
Do Until ActiveCell(2, 0).Value = "0.395833333333333"
ActiveCell.FormulaR1C1 = _
"=IF(RC[-6]> R + var + C4 ,""Look"","""")"
ActiveCell.Offset(1, 0).Select
Loop
Thanks for your help.............RO