any value to range.formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any advantage to setting a cell's contents using range.formula vs
range.value? The following yield identical results:


Sub place_it()
s = "=1+2"
Range("A1").Value = s
Range("A2").Formula = s
End Sub
 
Except for clarity of what you are doing, apparently not but I often like to
just leave the value

Sub place_it()
s = "=1+2"
'Range("A1").Value = s
Range("a1").Value = Application.Sum(1, 2)
'or
Range("a1").Value = 1 + 2
Range("A2").Formula = s
 

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