Byref Argument Type Mismatch

G

Guest

I get the "Byref Argument Type Mismatch" error when I try to pass 2 arguments
from VBA module-1 to module-2 using the below code: When I modify the code
to only accept 1 argument it works but i'd like to pass both.

thanks Alex

module-1
ProjSnap strSelected, SQLText
module-2
Public Sub ProjSnap(strSelected As String, SQLText As String)
 
D

Dirk Goldgar

Alex said:
I get the "Byref Argument Type Mismatch" error when I try to pass 2
arguments from VBA module-1 to module-2 using the below code: When I
modify the code to only accept 1 argument it works but i'd like to
pass both.

thanks Alex

module-1
ProjSnap strSelected, SQLText
module-2
Public Sub ProjSnap(strSelected As String, SQLText As String)

What are the definitions of strSelected and SQLText?
 

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