Passing a function from VB with text strings in quotation marks

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
Hi Max,

Repalce \"\ with ""

e.g.

Range("A1").Formula="=If(TRUE,""First"",""Second"")"


Hoop This Helps,


Executor
 
double up on them, but only the double-quotes.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
Nevermind - I figured it out why! Sometimes you just need to step back a
bit. Thanks for the help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top