Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / April 2005

Tip: Looking for answers? Try searching our database.

Remove Custom Form??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zenith - 19 Apr 2005 08:45 GMT
I published custom form in specific folder using CreateItemFromTemplate method.
And Now, I want to remove or modify custom form.
How can i do??

publish sourse is :
   Dim oFolder As Outlook.MAPIFolder
   Dim oItem As Object
   Dim oForm As Object
   
   Set oFolder =
Application.GetNamespace("MAPI").GetFolderFromID(g_oRootFolder.Id)
   Set oItem = Outlook.Application.CreateItemFromTemplate(APPROVAL_FORM_PATH)
   Set oForm = oItem.FormDescription
   
   oForm.Name = APPROVAL_FORM_NAME
   oForm.PublishForm olFolderRegistry, oFolder
   oItem.Close olDiscard
Sue Mosher [MVP-Outlook] - 19 Apr 2005 14:31 GMT
If you want to remove a form programmatically, you'll need to use CDO or Redemption. See http://www.outlookcode.com/d/forms.htm#remove

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

>I published custom form in specific folder using CreateItemFromTemplate method.
> And Now, I want to remove or modify custom form.
[quoted text clipped - 13 lines]
>    oForm.PublishForm olFolderRegistry, oFolder
>    oItem.Close olDiscard
zenith - 20 Apr 2005 02:38 GMT
Thanks. Sue
I figure out immediately.

"Sue Mosher [MVP-Outlook]"님이 작성한 내용:

> If you want to remove a form programmatically, you'll need to use CDO or Redemption. See http://www.outlookcode.com/d/forms.htm#remove
>
[quoted text clipped - 15 lines]
> >    oForm.PublishForm olFolderRegistry, oFolder
> >    oItem.Close olDiscard
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.