LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
y y is offline
external usenet poster
 
Posts: 60
Default Something works, something don't.

I wrote a custom function in VBA..

Function Test(Classe, osserv As Range, Dist As String, ParA As Double, ParB As Double) As Single
....
TMP AS double
....
Tmp = .Weibull(Classe(1), ParA, ParB, True) - .Weibull(0, ParA, ParB, True)
....
Tmp = .Distrib.Exp(Classe(1), ParA, True) - .Distrib.Exp(0, ParA, True)
....
Tmp = .Distrib.GAMMA(Classe(1), ParA, ParB, True) - .Distrib.GAMMA(0, ParA, ParB, True)

....

the first statement works fine.
The other two ones don't.

The parameters values are ParA=2 ParB=2 e Classe(1)=2

I included the three statements inside

"with Application.worksheet

....

end with".

May anybody help me, please? I can post the entire function.

Thanks Alex.

 
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
Need help on how it works.... deepak Excel Discussion (Misc queries) 1 January 28th 09 08:01 AM
HELP NOTHING WORKS DaveAsh Excel Worksheet Functions 2 November 15th 07 10:51 AM
It works but why...? will Links and Linking in Excel 13 October 14th 05 05:39 PM
This almost works, but... Mr. Smiley Excel Discussion (Misc queries) 2 September 15th 05 07:24 PM
How do I convert works file to excel without works software? CatMB Excel Discussion (Misc queries) 1 June 21st 05 04:12 PM


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