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

  • by

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 *