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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Outlook mail from Attachmate

Status
Not open for further replies.

NoLuckOnMyOwn

Technical User
Sep 26, 2003
3
US
This is my firt post to this site.

I'm trying to generate an Outlook email and populate it with data from the Extra session. When I try to compile the macro, the line "Set MyItem" bombs. Can anyone tell me how to do this?

I have Outlook 2000 running and my session is in Extra!Enterprise 2000 Version 2000A.

Dim oApp As Object, MyItem as object

Set myOlApp = CreateObject("Outlook.Application")
Set MyItem = myOlApp.CreateItem(olMailItem)

MyItem.Display

Thanks!
 
Hi,

Can you please send us the exact compile error. The statements look fine to me. I would suggest you try defining the two objects separately and try. May not make a difference, but worth a try.

/* STANDARD DISCLAIMER */
 
Pardon my ignorance. I just realized that I used two different names for the Outlook object, oApp and myOlApp. It works fine when I correct this.

Thanks for the response. I think I need stronger glasses.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top