Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to Use Financial Function "ACCRINT" in VBA


Hi,

I have configured the following addins
Analysis Toolpak
Analysis Toolpak-VBA
But still i am able to access few financial functions using the
following :

VBA.Financial....

I want to use ACCRINT function in Macro
Can anybody help


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default How to Use Financial Function "ACCRINT" in VBA

If you're using VBA then you only need the VBA add-in.
In the IDE I assume that you've set a reference to the
atpvbaen.xls add-in?
If so, then open the object browser, select this in the
object list then you'll see all the available 'members'
ie properties and methods. Selecting Accrint will show
you the required parameters.
Accrued interest is the compensation if you will that the
buyer of a bond pays to then seller for the propertion of
interest that the seller earned.

For example suppose a bond pays 6% per annum interset and
this is paid every six months. Thus for a $10,000 bond,
the six monthly amount is $300 ( 1/2 * 6% * 10000 )

Lets assume payment is 1st January and 1st July. Lets
look at the case where the holder of the bond decides to
sell it, and payment date is say 1st March. We would
argue that th eseller owned the bond for two out of the
six month period. The buyer will on 1st July receive the
full coupon for the six month period, even though the
will only have owned th ebond for four months. Thus, when
the buyer pays for the bond, he will pay th eseller the
price PLUS two month of accrued interest.

The Accint function allows you to calculate this value.
The "key" variables are the frequency and th ebasis,
because these will be different in different markets. For
example, US domestic bonds pay semi annual on a 30 day
month, 360 day year. UK bonds pay semi annual on an
actual day ( ie 356/366) day year. Eurobonds are annual
pay on 30/360 and so on.

Patrick Molloy
Microsoft Excel MVP




-----Original Message-----

Hi,

I have configured the following addins
Analysis Toolpak
Analysis Toolpak-VBA
But still i am able to access few financial functions

using the
following :

VBA.Financial....

I want to use ACCRINT function in Macro
Can anybody help


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

~~Now Available: Financial Statements.xls, a step by

step guide to creating financial statements
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default How to Use Financial Function "ACCRINT" in VBA

Atif Akbar wrote:
I want to use ACCRINT function in Macro

In the VB editor create a Tools / Reference to atpvbaen.xls
Then you can just use Accrint like any other built-in function.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How can I "autohide" certain lines in a financial report-as Sage Doug Kinsey Excel Discussion (Misc queries) 1 March 6th 08 12:13 AM
Using " Forecast" financial function Artm Excel Worksheet Functions 2 August 31st 07 10:57 PM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM


All times are GMT +1. The time now is 01:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"