kontraa,
Is this what you mean ?
In sheet1, range A1=GetFormula(5)
Public Function GetFormula(argOffset As Long) As String
With Sheet2.Range("A1")
GetFormula = .Offset(argOffset, 1).Formula
End With
End Function
But I suspect there are better way of achieving your goal.
NickHK
"kontraa" wrote in
message ...
Please,
i need this function to return formula to cell...not the value but
the formula...
thanks a lot
Public Function fnMonth(i As Integer)
fnMonth = "=Podklady!B" & 114 + i
End Function
--
kontraa
------------------------------------------------------------------------
kontraa's Profile:
http://www.excelforum.com/member.php...o&userid=33028
View this thread: http://www.excelforum.com/showthread...hreadid=535859