Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
J S J S is offline
external usenet poster
 
Posts: 11
Default Executing a formula?

Is there anyway to write a function that takes as input a string containing
a formula and then somehow executes it and returns the value?

MyExecuteFunction("sum(a2:c5)")

I basically want the user to write out a normal worksheet formula and then I
need to parse this formula, make some changes and return back the value.

Is there anyway to do this?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Executing a formula?

Hi
application.evaluate
e.g
msgbox application.evaluate("=SUM(A2:C5)")

--
Regards
Frank Kabel
Frankfurt, Germany


J S wrote:
Is there anyway to write a function that takes as input a string
containing a formula and then somehow executes it and returns the
value?

MyExecuteFunction("sum(a2:c5)")

I basically want the user to write out a normal worksheet formula and
then I need to parse this formula, make some changes and return back
the value.

Is there anyway to do this?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I stop a formula from executing based on a cell value? Ricke New Users to Excel 4 October 5th 08 09:39 PM
EXECUTING A FORMULA Theresa New Users to Excel 4 January 18th 07 06:09 PM
Executing a formula based on criteria being met confused teacher Excel Worksheet Functions 2 August 17th 06 06:56 AM
Worksheet_Change Still Not Executing.... [email protected] Excel Programming 0 September 3rd 04 11:50 PM
Code not executing iwrk4dedpr[_6_] Excel Programming 3 June 3rd 04 07:48 AM


All times are GMT +1. The time now is 12:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"