I am brand new to Access and have only basic VBA experience coding macros in Excel, so apologies if I am being obtuse, but I am really struggling trying to get this( to work. Can I paste the code exactly as written for the two functions and it should work? The first part seems to be calling a GetGoodGuess() function that isn't defined anywhere.
For the second part can I use exactly as is or do I need to add code to reference the library? How do I go about doing that?
Public Function XIRR_Wrapper(Payments() As Currency, Dates() As String, Optional GuessRate As Double = 0.9)
'Must add a reference to the Xcel library. Use Tools, References, Microsoft Excel XX.X Object Library
XIRR_Wrapper = Excel.WorksheetFunction.Xirr(Payments, Dates, GuessRate)
End Function
I tried to figure something out via Google searches, but there doesn't seem to be much that works on this topic. Could you kindly explain like you would to a noob idiot, because I am a noob idiot?
For the second part can I use exactly as is or do I need to add code to reference the library? How do I go about doing that?
Public Function XIRR_Wrapper(Payments() As Currency, Dates() As String, Optional GuessRate As Double = 0.9)
'Must add a reference to the Xcel library. Use Tools, References, Microsoft Excel XX.X Object Library
XIRR_Wrapper = Excel.WorksheetFunction.Xirr(Payments, Dates, GuessRate)
End Function
I tried to figure something out via Google searches, but there doesn't seem to be much that works on this topic. Could you kindly explain like you would to a noob idiot, because I am a noob idiot?