Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing a function from VB with text strings in quotation marks
Hi,
I'm trying to pass this function to a cell within VB: =IF(ISERR(VLOOKUP(U2,'Anderson List'!$A$3:$F$1945,1))=TRUE,\" \ MISSING \ "\,IF(VLOOKUP(U2,'Anderson List'!$A$3:$F$1945,1)=U2,\" \ OK \ "\,VLOOKUP(U2,'Anderson List'!$A$3:$F$1945,1))) but with the quotation marks foul things up. How do I pass the quotes? Thanks! -- Thanks! Max |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing a function from VB with text strings in quotation marks
Hi Max,
Repalce \"\ with "" e.g. Range("A1").Formula="=If(TRUE,""First"",""Second"" )" Hoop This Helps, Executor |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing a function from VB with text strings in quotation marks
double up on them, but only the double-quotes.
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "Max" wrote in message ... Hi, I'm trying to pass this function to a cell within VB: =IF(ISERR(VLOOKUP(U2,'Anderson List'!$A$3:$F$1945,1))=TRUE,\" \ MISSING \ "\,IF(VLOOKUP(U2,'Anderson List'!$A$3:$F$1945,1)=U2,\" \ OK \ "\,VLOOKUP(U2,'Anderson List'!$A$3:$F$1945,1))) but with the quotation marks foul things up. How do I pass the quotes? Thanks! -- Thanks! Max |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing a function from VB with text strings in quotation mark
Now I get a runtime error 1004 - hmmm... Any other ideas?
-- Thanks! Max "Executor" wrote: Hi Max, Repalce \"\ with "" e.g. Range("A1").Formula="=If(TRUE,""First"",""Second"" )" Hoop This Helps, Executor |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Passing a function from VB with text strings in quotation mark
Nevermind - I figured it out why! Sometimes you just need to step back a
bit. Thanks for the help! -- Thanks! Max "Max" wrote: Now I get a runtime error 1004 - hmmm... Any other ideas? -- Thanks! Max "Executor" wrote: Hi Max, Repalce \"\ with "" e.g. Range("A1").Formula="=If(TRUE,""First"",""Second"" )" Hoop This Helps, Executor |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Quotation Marks as Text | Excel Discussion (Misc queries) | |||
Generating text surrounded by quotation marks | Excel Discussion (Misc queries) | |||
Finding Quotation marks in Search function | Excel Worksheet Functions | |||
Passing string arguments that have quotation marks in them | Excel Programming | |||
How do I concatenate text that actually contains quotation marks? | Excel Worksheet Functions |