+ Reply to Thread
Results 1 to 2 of 2

Using XIRR function in VBA ?

  1. #1
    martonec
    Guest

    Using XIRR function in VBA ?

    Hi all,
    does anyone have a working example of the XIRR function running in
    VBA or VB ?
    I am pulling what's left of my hair out here. I can run the function ok
    but the result is not what I'm expecting. I think I'm obviously going
    wrong somewhere along the line. Any help would be greatly appreciated.

    Tony


  2. #2
    Ron Rosenfeld
    Guest

    Re: Using XIRR function in VBA ?

    On 20 Mar 2006 11:57:04 -0800, "martonec" <tony@martonec.com> wrote:

    >Hi all,
    > does anyone have a working example of the XIRR function running in
    >VBA or VB ?
    >I am pulling what's left of my hair out here. I can run the function ok
    >but the result is not what I'm expecting. I think I'm obviously going
    >wrong somewhere along the line. Any help would be greatly appreciated.
    >
    >Tony


    It runs like any other worksheet function, EXCEPT you should have set a
    reference to APTVBAEN.XLA and you would just call it directly (no
    application.worksheefunction preceding).

    e.g.

    Dim res as double

    res = xirr(values, dates, holidays)


    --ron

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1