L
Lucian Sitwell
I'll excuse my ignorance in advance. I am only starting to program in VBA.
I'm getting error 91 on the last line. No matter what approach I use
(inspector or itemproperties.items.etc. I still get a mismatch). Am I
missing a reference???Lucian Sitwell
Sub Test()
'
' Test Macro
' Macro recorded 12/15/2004 by Lucian Sitwell
'
Dim olApp As Outlook.Application
Dim objContact As Object
Dim objContacts As Outlook.MAPIFolder
Dim objNameSpace As Outlook.NameSpace
Dim objAddress As Object
Dim objInspector As Outlook.Inspector
Dim objExplorer As Outlook.Explorer
Dim objItem As Object
Set olApp = CreateObject("outlook.application")
Set objNameSpace = olApp.GetNamespace("MAPI")
Set objContacts = objNameSpace.GetDefaultFolder(olFolderContacts)
Set objContact = objContacts.Items.Find("[FullName] = ""Doctor's full
name here""")
Set objInspector = olApp.ActiveInspector
objInspector.Display
End Sub
I'm getting error 91 on the last line. No matter what approach I use
(inspector or itemproperties.items.etc. I still get a mismatch). Am I
missing a reference???Lucian Sitwell
Sub Test()
'
' Test Macro
' Macro recorded 12/15/2004 by Lucian Sitwell
'
Dim olApp As Outlook.Application
Dim objContact As Object
Dim objContacts As Outlook.MAPIFolder
Dim objNameSpace As Outlook.NameSpace
Dim objAddress As Object
Dim objInspector As Outlook.Inspector
Dim objExplorer As Outlook.Explorer
Dim objItem As Object
Set olApp = CreateObject("outlook.application")
Set objNameSpace = olApp.GetNamespace("MAPI")
Set objContacts = objNameSpace.GetDefaultFolder(olFolderContacts)
Set objContact = objContacts.Items.Find("[FullName] = ""Doctor's full
name here""")
Set objInspector = olApp.ActiveInspector
objInspector.Display
End Sub