Getting error on Outlook.ContactItem on line below. How do I deal with this?
iCon = CType(F.Items().Add(2), Outlook.ContactItem)
Thanks
Regards
Sheesh. If the starting point I gave couldn't get you started, you really
shouldn't be programming. I mean, seriously...it seems that some really
really BASIC concepts are eluding you. You're basically looking for someone
to do it *for you*
Why are using CType? Do you know what it does? Stop trying to "cast." Same
goes for the constant "olContactItem." Find out what integer this represents
(um, research... use your wits) and use that in the place of the constant.

Signature
-C. Moya
www.cmoya.com
John - 25 Feb 2006 00:48 GMT
Actually I have already done it after your first post but before the second
post and just wanted to double check the small point. As you can see I had
already determined and used the constant. Thanks for the original post that
helped me to complete this successfully.
Regards
> Sheesh. If the starting point I gave couldn't get you started, you really
> shouldn't be programming. I mean, seriously...it seems that some really
[quoted text clipped - 5 lines]
> represents (um, research... use your wits) and use that in the place of
> the constant.