I have a problem with value detection in excel. When it doesn't have value in cell i want excel show me message warning rather than zero value and i have code below.
Public Function MySum(a As Range, b As Range) As String
If IsNull(a) And IsNull(b) Then
MySum = "No value sir"
Else
MySum = a.Value + b.Value
End If
End Function