How to delete a form published in Calendar

A

Amit

I have publised a new form in Calendar folder using following code:

*************************
Dim filename As String
Dim Temp As String
Dim endpos As Integer
Dim mylength As Integer
Set myOlApp = GetObject("", "Outlook.Application")
' retrieve Outlook Templates
filename = Dir$("c:\RAC\*.oft", vbNormal)
Do Until filename = ""
mylength = Len(filename)
' strip off the extension from the filename. This will be thename of
the form.
endpos = InStr(1, filename, ".oft", 1)
strTemp = Trim(Mid(filename, 1, endpos - 1))
' publish all Outlook forms into the Personal Registry
Set olns = myOlApp.GetNamespace("MAPI")
Set MyTasksFolder = olns.GetDefaultFolder(olFolderCalendar)
'Set MyNewFolder = MyTasksFolder.Folders.Add("Amit")
Set myItem = myOlApp.CreateItemFromTemplate("C:\RAC\" & filename)
Set myForm = myItem.FormDescription
myForm.Name = strTemp
myForm.PublishForm olFolderRegistry, MyTasksFolder
filename = Dir$
Loop

*****************


Can anyone give me some idea how can I remove this form. Please help...
 

Ask a Question

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.

Ask a Question

Top