[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Instantiating VBA financial functions through VBScript

Posted on 2002-07-17
6
Medium Priority
?
338 Views
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?
Thanks
0
Comment
Question by:asbailey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 3

Expert Comment

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

 ~ MastaLlama ~
0
 

Author Comment

by:asbailey
ID: 7160771
I was wondering if I could directly access these functions via VBScript without using a DLL
EG:
<%

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

%>
THe problem is working out the PROGID [i.e. "?"]
0
 
LVL 3

Accepted Solution

by:
mastallama earned 150 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])

Arguments
servername

Required. The name of the application providing the object.

typename

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

location

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

 ~ MastaLlama ~
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

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

Expert Comment

by:mastallama
ID: 7160834
no problem
 
 ~ MastaLlama ~
0
 
LVL 3

Expert Comment

by:mastallama
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 ~
0

Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

650 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