Set objTextBox = Nothing
Set objTextBox = CreateObject("Forms.TextBox.1")
' objTextBox.Location = new Point(25,25)
Set objP2Page = Item.GetInspector.ModifiedFormPages("P.2")
objP2Page.Controls.Add( objTextBox )
End Function
What in particular doesn't work? Has P.2 previously been modified? Why are
you trying to add a control programmatically (which will one-off the form
unless you republish it)?
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers