![]() |
Delete a custom page
In Outlook 2003 I have a custom message form. On the second page I have the
feilds I created for the user to enter the information, which is inserted into the body on the standard page. Up to here everything is good. I want to use before send to delete the custom page (where the enter the info) so when recieved it just is a standard message. any suggestions? I have tried both delete and revove without any luck 'Set myPages = Item.GetInspector.ModifiedFormPages 'myPages.Remove("Down User/High Priority") 'Item.GetInspector.Remove "Down User/High Priority" Thanks Tom |
Delete a custom page
Pages can be hidden (Inspector.HideFormPage) but not deleted. The code to show/hide a page needs to be in the form's Item_Open event handler. In this scenario, you might hide the page in the published form's design, then use this code to show the page when the user creates a new message with the form:
Function Item_Open() If Item.Sent = False Then Item.GetInspector.ShowFormPage "Down User/High Priority" End If End Function -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Tom" wrote in message ... In Outlook 2003 I have a custom message form. On the second page I have the feilds I created for the user to enter the information, which is inserted into the body on the standard page. Up to here everything is good. I want to use before send to delete the custom page (where the enter the info) so when recieved it just is a standard message. any suggestions? I have tried both delete and revove without any luck 'Set myPages = Item.GetInspector.ModifiedFormPages 'myPages.Remove("Down User/High Priority") 'Item.GetInspector.Remove "Down User/High Priority" Thanks Tom |
All times are GMT +1. The time now is 03:54 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com