ISERROR formula in VBA not working for me

C

Cesar Zapata

Hi,

I'm recording a formula and then I want to add the thisworkbook.name part
instead of mvtquery.xls. I tried adding something like this but is not
working
the recorded part " & thisworkbook.name & " the other recorded part.

I think I may be missing a " somewhere but I cant find it. this is driving
me nuts.


ActiveCell.FormulaR1C1 = _

"=ISERROR((VLOOKUP(VALUE(LEFT(R[1]C,(SEARCH(""("",R[1]C)-2))),[MvtQuery.xls]
Sheet3!R70C1:R100C2,2) &"" ""&RIGHT(R[1]C,LEN(R[1]C)-SEARCH(""
"",R[1]C))))""""
VLOOKUP(VALUE(LEFT(R[1]C,(SEARCH(""("",R[1]C)-2))),[MvtQuery.xls]Sheet3!R70C
1:R100C2,2) &"" "" "



Thanks for your 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

Top