LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Modified McCauley Duration From VBA?

Needless to say, I still have the option of pushing a formula into a
cell, pushing the arguments into other cells, excuting the formula
cell, and then picking off the result.


When I go that way, however, it still throws an error.

I come up with a FormulaR1C1 of something like:
=MDURATION("1/1/2008", "1/1/2016", ".08", ".09", "2", "1")

And, indeed, when I manually paste that into a spreadsheet that I have
created by opening up Excel manually, I get the expected result.

But when I programatically put it into a spreadsheet I have opened via
code, it gives an "Error 2029".

If I copy the exact formula the code has created from the cell it was
created into and paste that into another sheet, it works too.

Can anybody elucidate?

 
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
duration Keith_river Excel Worksheet Functions 1 August 26th 08 04:46 AM
fx duration sajid Excel Worksheet Functions 1 May 5th 06 09:28 AM
Modified Duration Liz23 Excel Worksheet Functions 1 December 29th 05 09:10 PM
Duration citizens1stbank Excel Discussion (Misc queries) 0 July 15th 05 06:23 PM
Duration Tess Excel Discussion (Misc queries) 2 February 1st 05 03:39 PM


All times are GMT +1. The time now is 07:18 AM.

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

About Us

"It's about Microsoft Excel"