antaeusguy
Board Regular
- Joined
- Mar 8, 2010
- Messages
- 81
I want to enter a R1C1 style formula in range("A1") with:
=CONCATENATE(B1, " ",C1," ",D1)
I need to include a space between each cells with " ".
So I wrote this procedure:
Sub enterformula()
Range("a1").FormulaR1C1 = "=CONCATENATE(RC[1]," ",RC[2]," ",RC[3])"
End Sub
It says:
Compile error:
Expected: end of statement
and it highlighted this in blue ",RC[2]," --> showing me where the potential error is...
Does anyone here could help me with this problem? Thanks in advance
=CONCATENATE(B1, " ",C1," ",D1)
I need to include a space between each cells with " ".
So I wrote this procedure:
Sub enterformula()
Range("a1").FormulaR1C1 = "=CONCATENATE(RC[1]," ",RC[2]," ",RC[3])"
End Sub
It says:
Compile error:
Expected: end of statement
and it highlighted this in blue ",RC[2]," --> showing me where the potential error is...
Does anyone here could help me with this problem? Thanks in advance