Need a simple command. [earlier post requesting help]
I am in desparate need of help for a few commands to complete this project, and being a newbie at VB, this is quite a challenge.
Jim
Printable View
Need a simple command. [earlier post requesting help]
I am in desparate need of help for a few commands to complete this project, and being a newbie at VB, this is quite a challenge.
Jim
'launch default email program and send mail
Private Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
Private Const SW_SHOW = 5
'form code (command button)
ShellExecute hwnd, "open", "mailto:[email protected]", vbNullString, vbNullString, SW_SHOW
Hey "HeSaidJoe"
I tried to copy what you posted then paste it into my program, but being a newbie, maybe I assumed wrong. Should I have only used part of what you typed? I got compile errors that said something like "Only comments can be something after end sub" Not sure what that mean't cause it wasn't after end sub. Oh yeah, I did change the e-mail address part to mine [email protected] but it still gave the same message.