XIRR Function retruns an error object

S

Sai Krishnakumar

I have been using OWC10.Spreadsheet Analysis Toolpak (correlations,
regressions etc) functions in my code without any problems until now.

The following code snippet returns an error object -

QRS.Cells(k+2,2) = "=XIRR(B1:B" & k+1 & ",A1:A" & k+1 & ")*100"
RPTXR = QRS.Cells(k+2,2).Value
Response.Write TypeName(RPTXR)

I have tried exporting the spreadsheet. The XIRR calculation result appears
correctly in the cell on the excel sheet. Iam just unable to access it from
code.

Does it have something to do with initializing the Toolpak add-in ?? If so
how come other Toolpak functions work fine ? And how do I go about
initializing it using the .Addin method ? (MSKB doesn't show any examples)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top