I have a subroutine(callMe) in Module1. I want to call "callMe" in other subroutine in Form1.
I cant do it. I cant call subroutine in other subroutine.
How do i do it.
This example may help you
' In Module1 Public Sub CallMe(sValue As String) MsgBox "This is CallMe + " & sValue End Sub 'In Form1 Public Sub CallToCallMe() CallMe "Hi" End Sub Private Sub Command1_Click() CallToCallMe End Sub
I have done it without adding "Public" word. Does it make any difference with or without it?
I think no difference. By default it is also Public.
Yes, You have to Create the procedure as "Public" if you want to call it in other forms through out the project..