ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Putting Formula in Cell (https://www.excelbanter.com/excel-programming/344449-putting-formula-cell.html)

bw

Putting Formula in Cell
 
Cell A1 contains the following formula: = J2 & ": " & K1
How do I put this formula in cell A1 using VB?

Thanks,
Bernie



[email protected]

Putting Formula in Cell
 

Range("A1") = "=J2 & ""."" & K1"


bw

Putting Formula in Cell
 
Thanks Allan!

I see my problem is/was the Quotes. My actual formula is quite long, and
the double quotes did the trick.

Bernie

wrote in message
oups.com...

Range("A1") = "=J2 & ""."" & K1"





All times are GMT +1. The time now is 04:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com