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
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.