Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ShellExecute for eMail

Status
Not open for further replies.

TRYP

Programmer
Jun 20, 2000
136
US
aLL,

WHEN I PASS THIS TO SHELLeXECUTE I GET AN ERROR FROM OUTLLOOK THAT TELLS ME MY COMMAND LINE ARGUMENT IS IN ERROR AND I SHOULD CHANGE MY SWITCH.

ANY IDEAS

code:

passThis="mailto:guy@Web.com?" & _
"SUBJECT=test&BODY=hey&Attach=" & _
chr(34) & "c:\test.doc" & chr(34)

x= ShellExecute frmHwnd, "Open", _
passThis, vbNullString, vbNullString, 1
 
I don't know if this has anything to do with it or not but you are assigning the ShellExecute to a variable but you do not enclose your parameters in parenthesis.

Is outlook opening up at all?
 
i got the parentesis

my bad in typing

any ideas ??

tryp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top