Eval function with sum

R

raffaello_

Hi, I'm trying to use this VB funcion:

Function EVAL(rg As Range)
Application.Volatile
EVAL = Evaluate(rg.Text)
End Function

It works well in this case:
B3: =CONCATENA("'[Fatturazione";A3;".xls]Foglio1 '!$S$2")
C3: =EVAL(B3)

It doesn't work well in this other case:
G3: =CONCATENA("SOMMA('[Fatturazione";A3;".xls]Foglio1 '!$J:$J)")
H3: =EVAL(G3)

I obtain #"name?" error. Why in the #1 case the function works well an
in the #2 not?

Thank you very muc
 

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