UserFormulaRecognition

Closed Posted Dec 11, 2004 Paid on delivery
Closed Paid on delivery

This is for an Excel macro.

I would like the capability to evaluate and execute user-defined formulas which are combinations of both defined field names and numbers.

Given a universe of fields, let's say A, B, and C, the user would input a desired formula:

(A+(B/c))/A * 2

I do not want to hard code the formula in VBA, because I want user flexibility.

The formula would be entered in a cell within a worksheet.

The code needs to

1) Read the cell and upload the formula

2) Evaluate the formula

3) Calculate

The output can be stored as a separate variable.

Assuming that the cell A1 is where the formula is entered, I have written the following sample code: Values for A,B,C are

defined in the code for test purposes:

A=1

B=2

C=3

Dim c As New [login to view URL]

Dim n As Double

Range("A1").Select

DynFormula = [login to view URL]

n = [login to view URL](DynFormula)

This routine works if, in cell A1, I enter a formula with numbers such as (5+1)/3.

This routine does not work however, if I enter variable names - A,B, or C - in cell A1; I get a Type13 mismatch error.

My problem is that I cannot get the Evaluate function to recognize variable names, even though their values are already defined.

There is a fixed universe of variables. For any one formula, only a maximum of five variables may be combined. So, it may be A+B+C+D+E, or it may simply be A.

Thanks

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

XP

Excel VBA (2000 or 2002)

If necessary , 2003.

PHP

Project ID: #3475584

About the project

14 proposals Remote project Active Dec 23, 2004

14 freelancers are bidding on average $34 for this job

lschauer

See private message.

$76.5 USD in 2 days
(71 Reviews)
6.7
brsofts

See private message.

$21.25 USD in 2 days
(261 Reviews)
6.6
vbcodepro

See private message.

$21.25 USD in 2 days
(52 Reviews)
5.0
itexpertgroupsl

See private message.

$68 USD in 2 days
(18 Reviews)
4.1
mekhu

See private message.

$34 USD in 2 days
(12 Reviews)
2.9
fxing

See private message.

$21.25 USD in 2 days
(4 Reviews)
2.9
exceliier

See private message.

$42.5 USD in 2 days
(2 Reviews)
2.5
brianmulder

See private message.

$20.83 USD in 2 days
(6 Reviews)
2.5
jankarelpieterse

See private message.

$8.5 USD in 2 days
(1 Review)
1.3
yehudada

See private message.

$8.5 USD in 2 days
(0 Reviews)
0.0
rockgmicrotech

See private message.

$34 USD in 2 days
(0 Reviews)
0.0
gsisco

See private message.

$63.75 USD in 2 days
(1 Review)
0.0
kohavw

See private message.

$21.25 USD in 2 days
(0 Reviews)
0.0
smoothcode

See private message.

$34 USD in 2 days
(0 Reviews)
0.0