Problem writing formula

  • Thread starter Thread starter Alf
  • Start date Start date
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".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top