Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Formula within formula
I think this is quite a simple one
i am using a macro to put a formula in a cell, however as it contains speech marks (") it does not work, is there a way to get it to understand the speechmarks within the outer speech marks are part of the formula i want typed in the cell Worksheets("Customer Form").Range("C13").Formula = "=IF(Data!K11 = "New Manager", "Please Overtype With Name Of New Manager","")" |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Formula within formula
"=IF(Data!K11 = ""New Manager"", ""Please Overtype With Name Of New
Manager"","""")" verify in the immediate window: ? "=IF(Data!K11 = ""New Manager"", ""Please Overtype With Name Of New Manager"","""")" =IF(Data!K11 = "New Manager", "Please Overtype With Name Of New Manager","") so a doubled speech marks within a string produce a single speech mark. -- Regards, Tom Ogilvy Emma Hope wrote in message ... I think this is quite a simple one, i am using a macro to put a formula in a cell, however as it contains speech marks (") it does not work, is there a way to get it to understand the speechmarks within the outer speech marks are part of the formula i want typed in the cell? Worksheets("Customer Form").Range("C13").Formula = "=IF(Data!K11 = "New Manager", "Please Overtype With Name Of New Manager","")" |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Formula within formula
Emma,
Try this: Worksheets("Customer Form").Range("C13").Formula = _ "=IF(Data!K11 = ""New Manager"", ""Please Overtype With Name Of New Manager"","""")" John "Emma Hope" wrote in message ... I think this is quite a simple one, i am using a macro to put a formula in a cell, however as it contains speech marks (") it does not work, is there a way to get it to understand the speechmarks within the outer speech marks are part of the formula i want typed in the cell? Worksheets("Customer Form").Range("C13").Formula = "=IF(Data!K11 = "New Manager", "Please Overtype With Name Of New Manager","")" |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Formula within formula
Thanks Tom & John, that works great!!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula | Excel Worksheet Functions | |||
copy formula down a column and have cell references change within formula | New Users to Excel | |||
Build excel formula using field values as text in the formula | Excel Worksheet Functions | |||
Cell doesn't show formula result - it shows formula (CTRL + ' doe. | Excel Worksheet Functions | |||
Commenting custom formula fields/formula on formula editor | Excel Programming |