ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Eval function with sum (https://www.excelbanter.com/excel-discussion-misc-queries/91421-eval-function-sum.html)

raffaello_

Eval function with sum
 

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 and
in the #2 not?

Thank you very much


--
raffaello_
------------------------------------------------------------------------
raffaello_'s Profile: http://www.excelforum.com/member.php...o&userid=34968
View this thread: http://www.excelforum.com/showthread...hreadid=547055



All times are GMT +1. The time now is 02:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com