(Solved) – How to return a result from a VBA function

  • by
(solved)-–-how-to-return-a-result-from-a-vba-function

How do I return a result from a function?

For example:

Public Function test() As Integer
    return 1
End Function

This gives a compile error.

How do I make this function return an integer?

Leave a Reply

Your email address will not be published. Required fields are marked *