|
-
Jun 19th, 2000, 01:42 AM
#1
Thread Starter
Member
Private Sub opt5_Click()
On Error GoTo EmailError
Success = ShellExecute(0&, vbNullString, "mailto:[email protected]", vbNullString, "C:\", 1)
Exit Sub
EmailError:
MsgBox "There was an unexpected error while trying to initialise your email facilities. This may be because your computer does not have email facilities, or it may be because of a faulty installation."
End Sub
When I try to use this, I get a compile error that highlights ShellExecute in the 3rd line.
What do I need to do to get this to work?
-
Jun 19th, 2000, 01:47 AM
#2
Frenzied Member
-
Jun 19th, 2000, 01:51 AM
#3
[/code]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[/code]
Put this in a module.
-
Jun 19th, 2000, 01:52 AM
#4
_______
email
'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
ShellExecute hwnd, "open", "mailto:[email protected]", vbNullString, vbNullString, SW_SHOW
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 19th, 2000, 03:05 AM
#5
Thread Starter
Member
OH MY GOD!!!!!
HeSaidJoe,
It worked!!!!! I finally figured out what you mean't and put it in. Yippee!!!!!!!!
Thanks more than you know.....
Jim
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|