D
David
Hi All,
I have created a COM-AddIn with VB6 for Outlook 2000 with a custom
Contacts form. I am running Windows XP. I have button on the standard tool
bar, when clicked, it loops through all the displayed phone number for each
contact item and updates them. But I get a "Object value not set" error. The
Phone1Label, Phone2Label, Phone3Label and Phone4Label are part of the
standard contacts form, so I am not sure why I get the error.
Dim j As Integer
Dim ctrlLabel
For Each myitem In objFolder.Items
For j = 1 To 4
'gets the control that displays the phone type
'get error here
Set ctrlLabel =
myitem.GetInspector.ModifiedFormPages("General").Controls("Phone" & j &
"Label")
... do other stuff ...
Next
Next
item.Save
Next
Thanks for any help.
I have created a COM-AddIn with VB6 for Outlook 2000 with a custom
Contacts form. I am running Windows XP. I have button on the standard tool
bar, when clicked, it loops through all the displayed phone number for each
contact item and updates them. But I get a "Object value not set" error. The
Phone1Label, Phone2Label, Phone3Label and Phone4Label are part of the
standard contacts form, so I am not sure why I get the error.
Dim j As Integer
Dim ctrlLabel
For Each myitem In objFolder.Items
For j = 1 To 4
'gets the control that displays the phone type
'get error here
Set ctrlLabel =
myitem.GetInspector.ModifiedFormPages("General").Controls("Phone" & j &
"Label")
... do other stuff ...
Next
Next
item.Save
Next
Thanks for any help.