Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
FormulaR1C1 expects R1C1 references.
Enter Activecell.Formula = "=IF(F12=0,"""",IF(F12<0.3,0.3-F12,"""")" HTH -- AP "Max Bialystock" a écrit dans le message de news: ... When I use vba to insert this formula: Sub Macro1() ActiveCell.FormulaR1C1 = "=IF(F12=0," & Chr(34) & Chr(34) & Chr(34) & Chr(34) & ",IF(F12<0.3,0.3-F12," & Chr(34) & Chr(34) & Chr(34) & Chr(34) & "))" End Sub I get this result: =IF('F12'=0,"""",IF('F12'<0.3,0.3-'F12',"""")) How do I stop Excel from inserting the single quotation marks? Cheers, Max |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Paired Quote marks in Excel IF statement | Excel Worksheet Functions | |||
Writing formula to include quote marks in result | Excel Worksheet Functions | |||
Unwanted single quote displayed in Formula bar | Excel Discussion (Misc queries) | |||
Quote marks in Formulas passed from VB Script in Excel | Excel Worksheet Functions | |||
How to keep quote marks for CSV in excel | Excel Discussion (Misc queries) |