Very basic question about UDF's.
Could someone show me sample code and worksheet formula that accepts a
cell range as input and returns some processed result?
For example, let's say I want to multiply whatever value was supplied by
5.
Function MyFunc(r As Range) As String ' Is "r as Range" correct?
MyFunc = 5 ' * something - times what?
End Function
And also, what exactly do I put as a formula on my worksheet? Something
like
=MyFunc(A1) ?