Shellexecute, Mailto and Attachment problem..
Hey All,
I'm using the following line of code:
Code:
ShellExecute 0&, vbNullString, "mailto:?subject=AXIAR Email" & _
"&Attach=" & Chr(34) & DataKeyPath & Chr(34), _
vbNullString, "C:\", vbNormal
And recieving the following error from outlook:
"Command Line argument not valid. Please verify the switch you are using".
Any ideas?
Thanks!
Re: Shellexecute, Mailto and Attachment problem..
Quote:
Originally posted by BenFinkel
Hey All,
I'm using the following line of code:
Code:
ShellExecute 0&, vbNullString, "mailto:?subject=AXIAR Email" & _
"&Attach=" & Chr(34) & DataKeyPath & Chr(34), _
vbNullString, "C:\", vbNormal
And recieving the following error from outlook:
"Command Line argument not valid. Please verify the switch you are using".
Any ideas?
Thanks!
You can try adding the email address right before the "?", see if that helps.