ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   execute a text as a formula (https://www.excelbanter.com/excel-programming/295658-execute-text-formula.html)

Suresh[_4_]

execute a text as a formula
 
Hi,

I have the following problem, but couldnt find an answer in google. May be
it is too simple.

I have a text in a cell, I wish to evaluate it as a formula. This text
itself is a result of a formula.

For eg.,

="=request(" & A1 & "," & A2 &")"

This formula would result in a text: =request("ABC","DEF")

I want excel to treat the result as the next formula and execute it ? Is
this possible ? How can I do it ?


Thanks.



Frank Kabel

execute a text as a formula
 
Hi
have a look at application.evaluate in the VBA help

Frank
-----Original Message-----
Hi,

I have the following problem, but couldnt find an answer

in google. May be
it is too simple.

I have a text in a cell, I wish to evaluate it as a

formula. This text
itself is a result of a formula.

For eg.,

="=request(" & A1 & "," & A2 &")"

This formula would result in a text: =request("ABC","DEF")

I want excel to treat the result as the next formula and

execute it ? Is
this possible ? How can I do it ?


Thanks.


.



All times are GMT +1. The time now is 01:24 AM.

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