Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling Financial Functions
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hello,

Is there a way to call VBA Financial Functions such as PV, PMT from QTP?
Or
These functions are available in Excel, is there a way to call these functions with out actually writing the parameter to these functions to excel?

Thanks,
Raj
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,
You can use Excel formulas, in the QTP Data Table.

Bellow is the example:
'''-------------------------------------------------------------
Code:
DataTable("Formula", dtLocalSheet) = "=PV(10, 48, 200000)"
valPV = DataTable("Formula", dtLocalSheet)

DataTable("Formula", dtLocalSheet) = "=PMT(10, 48," & valPV &")"
valPMT = DataTable("Formula", dtLocalSheet)
Print "PV: " & valPV
Print "PMT: " & valPMT
'''-------------------------------------------------------------
Hope, this would help you! Smile

Thanks,
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
That should do it. I will try it out. Thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Inserting variable values into Descriptive Programming Functions eske99 2 3,521 12-18-2015, 01:47 PM
Last Post: vinod123
  calling QTP script from one to another krishnas.tester 3 6,741 11-12-2014, 10:32 AM
Last Post: vinod123
  Passing objects to Functions vinod.nhce 0 3,300 03-13-2014, 06:09 PM
Last Post: vinod.nhce
  vb script to stop execution of functions if conditions fail visitjaga 1 7,391 12-05-2013, 12:26 AM
Last Post: ravi.gajul
  calling stored procedure from Oracle borisk 3 6,455 03-19-2013, 12:41 PM
Last Post: gaveyom

Forum Jump:


Users browsing this thread: 1 Guest(s)