Hello,
Within Excel VBA, I am looking at the Object Browser. I have selected Outlook as the Library, and ContactItem as the Class.
Beneath this window is this note:
Class ContactItem
Member of Outlook
Here is the code I am trying to run:
When I step through the code, it produces this error message on the last line:
Run-time error: '438':
Object doesn't support this property or method
If ContactItem is a member of Outlook, how come I am getting this error?
Perhaps I am just not clear on the terms Class, Member, Property and Method. Or perhaps I am not clear how to interpret the information in the Object Browser.
In any case, can anyone shed some light on what I am doing wrong?
Thanks!
Dennis
Within Excel VBA, I am looking at the Object Browser. I have selected Outlook as the Library, and ContactItem as the Class.
Beneath this window is this note:
Class ContactItem
Member of Outlook
Here is the code I am trying to run:
VBA Code:
Dim o As Outlook.Application
Dim c As Outlook.ContactItem
Set o = CreateObject("Outlook.application")
Set c = o.ContactItem
When I step through the code, it produces this error message on the last line:
Run-time error: '438':
Object doesn't support this property or method
If ContactItem is a member of Outlook, how come I am getting this error?
Perhaps I am just not clear on the terms Class, Member, Property and Method. Or perhaps I am not clear how to interpret the information in the Object Browser.
In any case, can anyone shed some light on what I am doing wrong?
Thanks!
Dennis