I just notice another unwanted sideeffect: after called ..Add("General") the
default contact form reverts to one without the [how can I explain it]
Outlook 2003 "look and feel". The buttons are not styled and the layout
looks more like previous version of Outlook.
Any suggestions on how to retain the original look of the Outlook 2003
contact form?
Be careful with this. The size of your items may jump by 20k if you aren't
already using a custom form with them.
Bill James said:
Hello Sue,
Thank you for the tip. Your code worked! I simply added code to add a
modified page if none exist:
If (ActiveInspector.ModifiedFormPages.Count = 0) Then
ActiveInspector.ModifiedFormPages.Add ("General")
End If
Debug.Print
ActiveInspector.ModifiedFormPages("General").Controls("AddressSelectorLabel")
Shame that the only way to have direct access to the controls on a form is
to have at least one modified custome form page...
Thanks again
Actually, it is possible with the Outlook object model, but at a pretty
steep cost: You wind up one-offing the form. If the item is already using
a
custom form, though, that's not an issue and it's pretty simple:
Set generalPage = myItem.GetInspector.ModifiedFormPages("General")
Set addrSelLabel = generalPage.Controls("AddressSelectorLabel")
MsgBox addrSelLabel.Caption