Passing two objects to subroutine, not working?

M

musa.biralo

Hi,

i am just a beginner and i don't understand why the following simple
codes is not working.. I just want to pass two strings to my
subroutine. any help will be great!!!

Sub test()
subroutine ("first", "second")
End Sub

Sub subroutine(ByVal one As String, ByVal two As String)
MsgBox (one & two)
End Sub

Thanks
musa.biralo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top