ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Entering formulas containing quotation marks in VBA? (https://www.excelbanter.com/excel-discussion-misc-queries/131715-entering-formulas-containing-quotation-marks-vba.html)

Gaetan

Entering formulas containing quotation marks in VBA?
 
Anyone would know how I would go about entering this formula in a cell using
VBA? I'm having problem with the fact that there's quotation marks in the
formula...

=IF(H52="-",0,IF(I52="X",2,IF(H52<=E52+0.0205,2,1)))

Thanks for your help!

....Gaetan

Niek Otten

Entering formulas containing quotation marks in VBA?
 
Use two quotes

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Gaetan" wrote in message ...
| Anyone would know how I would go about entering this formula in a cell using
| VBA? I'm having problem with the fact that there's quotation marks in the
| formula...
|
| =IF(H52="-",0,IF(I52="X",2,IF(H52<=E52+0.0205,2,1)))
|
| Thanks for your help!
|
| ...Gaetan




All times are GMT +1. The time now is 01:27 AM.

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