|
-
Apr 8th, 2003, 03:40 PM
#1
Thread Starter
Junior Member
Email via outlook object problem(RESOLVED)
This code works just fine for setting the necessary object and hiding the SendEmail button if Outlook is not installed but...
if a user has Outlook installed but does not use it or have it set up there is a problem?
One on my users running XP was forced into Outlooks setup wizard every time this code ran. Another user was held up for as much as 2 minutes for the same reason.
How can I prevent this scenario from happening?
I reallize what is causing the problem and can walk them through a solution but thats not really the point.
Private Sub Form_Load()
On Error GoTo ErrorHandler
Set oLapp = CreateObject("Outlook.application")
Exit Sub
ErrorHandler:
Set oLapp = Nothing
cmdSendEmail.Visible = False
End Sub
Last edited by J.J. JOHNSTONE; Apr 14th, 2003 at 07:03 AM.
J.J.

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
|