Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have following custom function: Public Function InterestCapitalisation(freq As String) As Double Dim source As Range Set source = Application.Caller() Dim qperiod As Integer Dim qwynik As Double qperiod = source.Offset(0, -4).Value qwynik = qperiod / 3 Select Case freq Case "monthly" InterestCapitalisation = source.Offset(0, -1).Value Case "quarterly" If Not (Int(qwynik) * 3 = qperiod) Then source.Value = 0 Else InterestCapitalisation = source.Offset(0, -1).Value + _ source.Offset(-1, -1).Value + source.Offset(-2, -1).Value End If End Select Unfortunately when function is evaluating once it's firing again causing cyclic reference. How can I remove this cyclic reference? Przemek End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? | Excel Programming | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Excel - User Defined Function Error: This function takes no argume | Excel Programming | |||
Need to open the Function Arguments window from VBA for a user defined function. | Excel Programming |