I tried searching from this with no luck. I am a novice so this might be easy to others.
I have a module called myModule.
Inside this module I have a function called myFunction
Private Function myFunction() As Long
myFunction = 100
End Function
I would like to be able to call this function from any form...
for example:
Private Sub Form_Load()
Dim myNumber As Long
myNumber = myFunction
End Sub
I have a module called myModule.
Inside this module I have a function called myFunction
Private Function myFunction() As Long
myFunction = 100
End Function
I would like to be able to call this function from any form...
for example:
Private Sub Form_Load()
Dim myNumber As Long
myNumber = myFunction
End Sub