LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Evaluate Equation in VBA

I am trying to build a routine to build a set of formulas to use in VBA to
loop through data and apply formatting

Basically I created an array 1st col = equation to evaluate and 2nd col =
formatting to be applied

Then I loop through the records trying to test the equation against that
row's value (in a specific col). I thought I had found the perfect function
for this using the Evaluate(), but it doesn't seem to be able to handle
slightly complicate equations and onlyreturns the proper value on the most
simple equations. Mine is set up as follows

Evaluate(Replace(aColor(0, m), "x", iLL)) = True

In which my equations can be of 2 types

x120
OR
80<x=119

for the first EValuate works just fine, but for the latter it does work???

What function would permit me to properly evaluate if my variable iLL meets
the second type of equation or not?

Thank you



 
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
evaluate afdmello Excel Worksheet Functions 3 May 16th 10 09:11 PM
Why Evaluate? Dave Unger Excel Programming 13 March 5th 07 04:58 PM
How do you evaluate cell value in vba Umgal21 Excel Programming 2 November 9th 06 10:01 PM
Problem with Evaluate Andibevan[_4_] Excel Programming 8 November 24th 05 04:00 PM
Equation Editor- problem when editing an equation Gaby L. Excel Discussion (Misc queries) 0 September 27th 05 09:24 PM


All times are GMT +1. The time now is 10:17 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"