Hi,

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.

Thanks

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

Hi,

I have done it without adding "Public" word. Does it make any difference with or without it?

Thanks

I think no difference. By default it is also Public.

Hi,

Yes, You have to Create the procedure as "Public" if you want to call it in other forms through out the project..

Regards
Veena