Sorry I left out the API declaration; put this code in the declarations
section of your form:
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
Regards,
-Toby
>Subject: Re: How do I Link Label to email client message box?
>From: "Nigel Spicer" <spicerman@t...>
>Date: Sat, 20 Oct 2001 22:11:16
>X-Message-Number: 10
>
> > On the Label_Click event, do this:
> >
> > Call ShellExecute(Me.hwnd, _
> > vbNullString, _
> > "mailto:SomeEmailAddress@B...", _
> > vbNullString, _
> > "C:\", _
> > 0)
> >
> > Regards,
> > -Toby
> >
> > sub or function not defined error on Call ShellExecute?
>
>How do I fix this?
>
>Nigel...
>