ok.
My logic is that I want to compute some formula based on condition of some cells range as below.
if cell range value of c1 to c25 and b1 to b25 is greater than 0 and then less than 999999 do
(
(c10*c8)-(c9*b13)/(C10+B13)
)
otherwise
display "value should be between 0 to 999999"...
That is just a comment so please ignore.
Someone told me to use like this but i am not sure how would it work as I am new to VBA :(. Please help.
Thanks,
Vik
WorksheetFunction.Sum (Rng1)
WorksheetFunction.Sum (Rng2)
Hi,
I am getting "error -13 type mismatch "in this line below from my code
"If Rng1.Value >= 0 And Rng2.Value <= 999999 Then"
Basically I want to calculate formula only if values are greater than 0 and less than 099999.
Any help would be appreciated.
Thanks,
Vik
'mycal() is function...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.