Hi guys, I'm trying to call the function "mduration" in VBA. It outputs the correct numbers but it always says: "type mismatch" after performing the calculations.
Here's the code:
Cell.offset(0,14).value refers to yield. It has the following code which works fine:![]()
Please Login or Register to view this content.
Any suggestions as to how to combat the type mismatch error?![]()
Please Login or Register to view this content.
Bookmarks