ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using with... (https://www.excelbanter.com/excel-programming/294325-using.html)

y

Using with...
 
May I use the statement "with" with Application.WorksheetFunction?

VBA for Exce doesn't like this part of code...
Other things go well...

With Application.WorksheetFunction
Test = Test + (Rng2(i) - Weibull(Rng1(i), ParA, ParB, TRUE)) ^ 2 / Weibull(Rng1(i), ParA,
ParB, TRUE)

Thanks, Alex.


Doug Glancy

Using with...
 
It looks to me like you forgot to put your periods in front of the
functions:

Test = Test + (Rng2(i) - .Weibull(Rng1(i), ParA, ParB, TRUE)) ^ 2 /
..Weibull(Rng1(i), ParA,
ParB, TRUE)


hth,

Doug

"y" wrote in message ...
May I use the statement "with" with Application.WorksheetFunction?

VBA for Exce doesn't like this part of code...
Other things go well...

With Application.WorksheetFunction
Test = Test + (Rng2(i) - Weibull(Rng1(i), ParA, ParB, TRUE)) ^ 2

/ Weibull(Rng1(i), ParA,
ParB, TRUE)

Thanks, Alex.




y

Using with...
 
oops... thanks!

Doug Glancy wrote:

It looks to me like you forgot to put your periods in front of the
functions:




All times are GMT +1. The time now is 01:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com