Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default NOVICE :!! PLS help calling function!!!!

I really dont understand why I cannot pass the vector rstar in the function
forward...it gives me #value!!!!!!!!!!
The input of the function forward is a vector of the same dimension of
rstar!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Option Base 1
Function swap(r As Variant, date_pay As Variant)
Dim fw() As Variant
Dim rstar() As Variant

n = date_pay.Rows.Count
ReDim rstar(n, 2)
ReDim fw(n, 1)

rstar = interpolated_yield_curve(r, date_pay)

fw = forward(rstar)


swap=fw

If I use just::
fw = forward(r)
swap=fw

OR

rstar=interpolated_yield_curve(r, date_pay)

swap=rstar


it works sigularly so the function are right, but i can pass the input of
the first in the other.!

why??


thank a lot!


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
Calling a function in my SQL-DB from VBA KSor Excel Discussion (Misc queries) 0 March 11th 09 02:08 PM
Calling function from a userform Jeff Excel Discussion (Misc queries) 0 September 27th 06 03:27 PM
Calling a function and then returning CLamar Excel Discussion (Misc queries) 4 June 19th 06 06:47 PM
calling a function praptisahni Excel Programming 2 April 26th 04 05:17 PM
Calling a function from within EXCEL pcor[_2_] Excel Programming 3 July 18th 03 05:10 PM


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