Dear All,
Can I write the function that :
1. Return the value.
2. Change some properties.
Some things like:
LVDFunction RowsCount(Rng As Range) On error goto ErrorHandler Range("A1").Font.Bold = True RowsCount = Rng.Rows.Count ErrorExit: Exit Function ErrorHandler: RowsCount = -1 Resume ErrorExit End Function