Add Tetxbox at form open

Status
Not open for further replies.

DAVID POWELL

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
I have a custom form and trying to create a textbox on the message page at open..

Sub Item_Open()

' Sets the name of page on the form (P.2)
Set MyFormPage = Item.GetInspector.ModifiedFormPages("Message")
Set MyControl = MyFormPage.Controls.Add("Forms.TextBox.4")
MyControl.Left = 20
MyControl.Top = 50
MyControl.Width = 175
MyControl.Height = 30

This is not working

Thanks
david
 
Status
Not open for further replies.
Top