Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default price and yield functions

How do you use the price and yield functions in code? I tried:

Sub testyield()
Cells(1, 1) = Application.yield(Cells(2, 1), Cells(3, 1), Cells(4, 1),
Cells(5, 1), 100, 2, 0)
End Sub
obviously, the inputs are settlement, maturity, rate, price, etc. that work
on spreadsheet.

Do I have to activate these functions somehow? I do have to enable analysis
tool pak in order to use functions such as these on a spreadsheet, but what
about code?

Thanks, Mike Allen


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
Current Yield vs. Yield to Maturity at low prices beariebird Excel Worksheet Functions 1 November 19th 09 08:50 PM
price list changes using conditional functions? Frustratedpricer Excel Worksheet Functions 3 March 27th 09 05:48 AM
Excel slow due to Yield and Duration Functions paulb Excel Discussion (Misc queries) 0 January 18th 08 08:05 AM
Help: Need Excel formula to return correct price from price history table Ian_W-at-GMail Excel Discussion (Misc queries) 5 March 21st 07 06:45 PM
calculate/convert volume price to monthly average price Bultgren Excel Worksheet Functions 2 February 14th 06 09:36 AM


All times are GMT +1. The time now is 03:57 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"