Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Statistical functions not tied to Application.WorksheetFunction

Are there any pure VB functions that have the functionality of Excel's
TDist, TInv, NormSDist, etc functions? The reason is that i do not
want to have to have an instance of Excel open whenever i want to use
these functions in Access, Word, VB6, etc.

Any help would be appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Statistical functions not tied to Application.WorksheetFunction

Do you need to open an instance of Excel to use its worksheet functions. I
know very little about VB but this worked for me:

with a reference to Excel in Project References

Private Sub Command1_Click()

Dim xlFun As Excel.WorksheetFunction
Set xlFun = Excel.WorksheetFunction

x = xlFun.TDist(1.96, 60, 2)

MsgBox x
End Sub

Regards,
Peter T


Are there any pure VB functions that have the functionality of Excel's
TDist, TInv, NormSDist, etc functions? The reason is that i do not
want to have to have an instance of Excel open whenever i want to use
these functions in Access, Word, VB6, etc.

Any help would be appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Statistical functions not tied to Application.WorksheetFunction

Ignore previous, that does appear to open an instance of Excel which would
need Quit'ing and references set to nothing. Though seems a lot faster than
"New Excel.Application".

Regards,
Peter T


Do you need to open an instance of Excel to use its worksheet functions. I
know very little about VB but this worked for me:

with a reference to Excel in Project References

Private Sub Command1_Click()

Dim xlFun As Excel.WorksheetFunction
Set xlFun = Excel.WorksheetFunction

x = xlFun.TDist(1.96, 60, 2)

MsgBox x
End Sub

Regards,
Peter T


Are there any pure VB functions that have the functionality of Excel's
TDist, TInv, NormSDist, etc functions? The reason is that i do not
want to have to have an instance of Excel open whenever i want to use
these functions in Access, Word, VB6, etc.

Any help would be appreciated.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Statistical functions not tied to Application.WorksheetFunction

Ignore previous, that does appear to open an instance of Excel which would
need Quit'ing and references set to nothing. Though seems a lot faster than
"New Excel.Application".

Regards,
Peter T


Do you need to open an instance of Excel to use its worksheet functions. I
know very little about VB but this worked for me:

with a reference to Excel in Project References

Private Sub Command1_Click()

Dim xlFun As Excel.WorksheetFunction
Set xlFun = Excel.WorksheetFunction

x = xlFun.TDist(1.96, 60, 2)

MsgBox x
End Sub

Regards,
Peter T


Are there any pure VB functions that have the functionality of Excel's
TDist, TInv, NormSDist, etc functions? The reason is that i do not
want to have to have an instance of Excel open whenever i want to use
these functions in Access, Word, VB6, etc.

Any help would be appreciated.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Statistical functions not tied to Application.WorksheetFunction

Excel didn't invent statistics. There should be plenty of 3rd party sources
that supply such function libraries.

Here is a start:
http://members.aol.com/iandjmsmith/Examples.txt

--
Regards,
Tom Ogilvy



"R Avery" wrote in message
oups.com...
Are there any pure VB functions that have the functionality of Excel's
TDist, TInv, NormSDist, etc functions? The reason is that i do not
want to have to have an instance of Excel open whenever i want to use
these functions in Access, Word, VB6, etc.

Any help would be appreciated.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Statistical functions not tied to Application.WorksheetFunction

This is an excellent reference, Tom. Thanks a lot!

Reply
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 with Application.WorksheetFunction Ayo Excel Discussion (Misc queries) 4 May 14th 08 11:13 PM
Application.worksheetfunction Terry V Excel Programming 7 October 12th 04 05:48 AM
Application.WorksheetFunction.MMult Gabriel[_3_] Excel Programming 4 December 14th 03 04:40 PM
application.worksheetfunction.mmult help Alex[_13_] Excel Programming 2 October 29th 03 10:13 PM
Using Application.WorksheetFunction.Ln(...) in VBA doco Excel Programming 4 August 25th 03 01:08 PM


All times are GMT +1. The time now is 11:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"