Private Function fun(ByVal a As Integer, ByVal b As Integer) As Integer
s = 0
For i = a To b
If i Mod 3 0 Then
s = s + i
End If
Next
fun = s
End Function
Private Function fun(ByVal a As Integer, ByVal b As Integer) As Integer
s = 0
For i = a To b
If i Mod 3 0 Then
s = s + i
End If
Next
fun = s
End Function