I am trying to pass two string parameters to a Sub, but its not allowing me do that. The approach I have used is given below.
Sub callByValue( str1 As String, str2 As String)
MsgBox str1
MsgBox str2
End Sub
Calling Macros:
Dim s1, s2 As String
callByValue(s1,s2)
While calling callByvalue
, it's throwing a compiler error.