A
Alf
I'm trying to write a formula with VB but having problems.
Cell "C3" cotains a number (12,45) so I want to construct the formula
"=B12" in cell "K10".
Range("K10").Formula = "= b & Int(C3)"
This gives me a #NAME? error in K10.
Range("K10").Formula = "= "b" & Int(C3)"
VB says "Compile error Expected: End of Statement
Range("K10").Formula = "= ""b"" & Int(C3)"
This gives me the string value "b12" in "K12"
Could somebody please help me with the propper syntax for writing the
formula "=b12" in "K10".
Cell "C3" cotains a number (12,45) so I want to construct the formula
"=B12" in cell "K10".
Range("K10").Formula = "= b & Int(C3)"
This gives me a #NAME? error in K10.
Range("K10").Formula = "= "b" & Int(C3)"
VB says "Compile error Expected: End of Statement
Range("K10").Formula = "= ""b"" & Int(C3)"
This gives me the string value "b12" in "K12"
Could somebody please help me with the propper syntax for writing the
formula "=b12" in "K10".