P
Paul DBZ
I am a newbie with VBScript so please excuse my ignorance. I am trying to
use VBScript to read the value of several fields in an Outlook Custom Contact
Form and write the value of those fields to an Excel spreadsheet. I don't
understand how to reference the fields. For example, when I use the code
below, I get an error message: "The object doesn't support this property or
Method: 'objItems.HomePhone'. Why is objItems.Count a valid reference yet
objItems.HomePhone causes an error?
Thank you in advance! Paul
Dim objNameSpace
Dim objFolder
Dim objItems
Dim lngCount
Dim strASCII
Set objNameSpace = Application.GetNamespace("MAPI")
Set objFolder = objNameSpace.Folders("Personal Folders").Folders("Contacts")
Set objItems = objFolder.Items
lngCount = objItems.Count
strASCII = objItems.HomePhone
use VBScript to read the value of several fields in an Outlook Custom Contact
Form and write the value of those fields to an Excel spreadsheet. I don't
understand how to reference the fields. For example, when I use the code
below, I get an error message: "The object doesn't support this property or
Method: 'objItems.HomePhone'. Why is objItems.Count a valid reference yet
objItems.HomePhone causes an error?
Thank you in advance! Paul
Dim objNameSpace
Dim objFolder
Dim objItems
Dim lngCount
Dim strASCII
Set objNameSpace = Application.GetNamespace("MAPI")
Set objFolder = objNameSpace.Folders("Personal Folders").Folders("Contacts")
Set objItems = objFolder.Items
lngCount = objItems.Count
strASCII = objItems.HomePhone