How in to parse constants in formula to cells
On Sun, 26 Nov 2006 13:38:01 -0800, PapaDos
wrote:
Like you said before, it is probably not possible to adjust it for every
circumstances (Average(1,2,3) and so on...).
But it should pick up the negative values !
Any example where it failed to do so ?
I didn't allowed spaces in my first version, this Regexp shoud fix that:
re.Pattern = "[=(^*/+\-]\s*(-*\s*\d*\.?\d+)"
Here's another simple function where your routine does not pick up anything:
=IF(G110000,C1,-10)
My approach picks up both:
1 10000
2 -10
--ron
|