Instantiating VBA financial functions through VBScript

Posted on 2002-07-17
Last Modified: 2012-06-27
I need to access PMT and RATE functions found within the VBA library through an ASP page.
I don't want to really wrap this function within a COM object and reference that way. I was hoping to be able to access these functions through VBScript via a valid PROGID.
The server on which this will reside will not have MS Office installed on it.
The backend is SQL Server 7 with no OLAP services installed [unable to use a stored procedure to compute rate or pmt]

Does anyone have any ideas?
Question by:asbailey
  • 4
  • 2

Expert Comment

ID: 7160750
you could write them into a DLL file and call it in the ASP page.

 ~ MastaLlama ~

Author Comment

ID: 7160771
I was wondering if I could directly access these functions via VBScript without using a DLL

Dim objA
Dim dblPMT
Set objA = server.createobject("?")
dblPMT = objA.PMT(....)

THe problem is working out the PROGID [i.e. "?"]

Accepted Solution

mastallama earned 75 total points
ID: 7160799
sorry asbailey, but I don't think it is possible.  Here's what I have found...

CreateObject Function
Creates and returns a reference to an Automation object.

CreateObject(servername.typename [, location])


Required. The name of the application providing the object.


Required.The type or class of the object to create.


Optional. The name of the network server where the object is to be created.

 ~ MastaLlama ~
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!


Author Comment

ID: 7160830
It looks like VBA objects don't support IDispatch interface that allows Automation....rats man
Thanks for your help ~ MastaLlama ~

Expert Comment

ID: 7160834
no problem
 ~ MastaLlama ~

Expert Comment

ID: 7161264
by the way...

Why the grade of "C"?

you asked: "I was hoping to be able to access these functions through VBScript via a valid PROGID. "

i told you it's not possible unless you create a DLL, you said: "I was wondering if I could directly access these functions via VBScript without using a DLL"

again i said, it's not possible.

i find no logic in a "C" grade...

 ~ MastaLlama ~

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now