Can we see the rest of the code?

Signature
---
HTH
Bob
__________________________________________
UK Cambridge XL Users Conference 29-30 Nov
http://www.exceluserconference.com/UKEUC.html
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> Hi Bob
> I am trying to use the sample code however the following line stays red
[quoted text clipped - 24 lines]
>> >
>> > Thanks
Noemi - 25 Nov 2007 21:43 GMT
Hi Bob
Below is the code I am using, I have marked the line which stays red and I
dont know why.
Dim objOutlook As Object
Dim objNameSpace As Object
Dim objMailItem As Object
Dim objRecipient As Object
Set objOutlook = CreateObject("Outlook.Application")
Set objNameSpace = objOutlook.GetNamespace("MAPI")
Set objMailItem = objOutlook.CreateItem(0)
Set objRecipient.Add("John Wilson") **********Stays Red
objRecipient.Type = 1
objMailItem.Subject = "Testing Only"
objMailItem.Body = "Testing only"
objMailItem.Attachments.Add ActiveWorkbook.FullName
objNameSpace.Logon , , True
objMailItem.Send
Set objRecipient = Nothing
Set objMailItem = Nothing
Set objNameSpace = Nothing
Set objOutlook = Nothing
Thanks
Noemi
> Can we see the rest of the code?
>
[quoted text clipped - 26 lines]
> >> >
> >> > Thanks