Quantlib addin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Quantlib addin

David Pearce-4
Hi,

I was hoping you might be able to help me. I've been tasked with developing my own excel add in to utilise the C++ quantlib libraries. I know there are add ins available, and have already downloaded one and been able to use the quantlib features. My problem lies with writing my own VBA code to access the quantlib C++ files: How do I write functions myself in vba which call on the quantlib libraries? It is my understanding that you refer to .dll files, but I've been unable to locate any in the quantlib files I've downloaded.

Any help or suggestions would be greatly appreciated.

Many thanks,

David

Sent from my iPad
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Quantlib addin

Andrew Downes
Hi David,

I'm not exactly sure what you're after, but I've used the 'Evaluate'
command before to access QuantLib functionality from VBA code. As an
example, you can write (in VBA):

            oneYearDate = Evaluate("=qlCalendarAdvance(""" & Calendar &
"""," & _
                                    startDate & "," & _
                                    """1Y""" & ")")

Not sure if this is the best way, but it works.

Cheers,

Andrew

-----Original Message-----
From: David Pearce [mailto:[hidden email]]
Sent: Tuesday, 12 July 2011 6:53 PM
To: [hidden email]
Subject: [Quantlib-users] Quantlib addin

Hi,

I was hoping you might be able to help me. I've been tasked with
developing my own excel add in to utilise the C++ quantlib libraries. I
know there are add ins available, and have already downloaded one and
been able to use the quantlib features. My problem lies with writing my
own VBA code to access the quantlib C++ files: How do I write functions
myself in vba which call on the quantlib libraries? It is my
understanding that you refer to .dll files, but I've been unable to
locate any in the quantlib files I've downloaded.

Any help or suggestions would be greatly appreciated.

Many thanks,

David

Sent from my iPad


"This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential,  may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication."

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Quantlib addin

Eric Ehlers-2
In reply to this post by David Pearce-4
Hi David,

Quoting David Pearce <[hidden email]>:

> Hi,
>
> I was hoping you might be able to help me. I've been tasked with  
> developing my own excel add in to utilise the C++ quantlib  
> libraries. I know there are add ins available, and have already  
> downloaded one and been able to use the quantlib features. My  
> problem lies with writing my own VBA code to access the quantlib C++  
> files: How do I write functions myself in vba which call on the  
> quantlib libraries? It is my understanding that you refer to .dll  
> files, but I've been unable to locate any in the quantlib files I've  
> downloaded.
>
> Any help or suggestions would be greatly appreciated.

Please see

     http://quantlib.org/quantlibxl/faq.html#faq_item_vba

Regards,
Eric

===================================================
Eric Ehlers
nazcatech sprl | Brussels | http://www.nazcatech.be
* Distributed computing for pricing analytics
* Use Microsoft Excel as a client to the Grid


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users