J
jules
Hi.
I am a using Outlook 2000 on Windows XP and I am programming with VB6.
Currently I'm facing a strange problem with deleting a mapi folder
programmtically.
Situation: There are around 50 mapi folders (Fold01 - Folder48) that
have been created initially. Each of these folders does contain one!
subfolder. When Outlook starts, my COM-Adding should delete each
subfolder of each toplevel folder. This is done with
TopFolder.Subfolder.Delete. Subfolder of couse is of type MapiFolder.
This seems to work for the first 20 folders but when it comes to the
21st Outlook throws an error saying:
"Unable to delete this folder. Right-click the folder, and then click
Properties to check your permissions for the folder. See the folder
owner or your administrator to change your permissions."
According to this error message I've got some permission problem.
Unfortunately this not true because I did (more than once) randomize
the order in which each of the subfolders should be removed. Strangly
enough it is always the 21st folder that refuses to remove.
I did then try to remove these remaining folders manually. Same error
message here.
Does anybody ever faced a similar problem?
Any suggestions, hints, tips,....?
Thanx in advance and best regards
BB Hi.
I am a using Outlook 2000 on Windows XP and I am programming with VB6.
Currently I'm facing a strange problem with deleting a mapi folder
programmtically.
Situation: There are around 50 mapi folders (Fold01 - Folder48) that
have been created initially. Each of these folders does contain one!
subfolder. When Outlook starts, my COM-Adding should delete each
subfolder of each toplevel folder. This is done with
TopFolder.Subfolder.Delete. Subfolder of couse is of type MapiFolder.
This seems to work for the first 20 folders but when it comes to the
21st Outlook throws an error saying:
"Unable to delete this folder. Right-click the folder, and then click
Properties to check your permissions for the folder. See the folder
owner or your administrator to change your permissions."
According to this error message I've got some permission problem.
Unfortunately this not true because I did (more than once) randomize
the order in which each of the subfolders should be removed. Strangly
enough it is always the 21st folder that refuses to remove.
I did then try to remove these remaining folders manually. Same error
message here.
Does anybody ever faced a similar problem?
Any suggestions, hints, tips,....?
Thanx in advance and best regards
Jules
I am a using Outlook 2000 on Windows XP and I am programming with VB6.
Currently I'm facing a strange problem with deleting a mapi folder
programmtically.
Situation: There are around 50 mapi folders (Fold01 - Folder48) that
have been created initially. Each of these folders does contain one!
subfolder. When Outlook starts, my COM-Adding should delete each
subfolder of each toplevel folder. This is done with
TopFolder.Subfolder.Delete. Subfolder of couse is of type MapiFolder.
This seems to work for the first 20 folders but when it comes to the
21st Outlook throws an error saying:
"Unable to delete this folder. Right-click the folder, and then click
Properties to check your permissions for the folder. See the folder
owner or your administrator to change your permissions."
According to this error message I've got some permission problem.
Unfortunately this not true because I did (more than once) randomize
the order in which each of the subfolders should be removed. Strangly
enough it is always the 21st folder that refuses to remove.
I did then try to remove these remaining folders manually. Same error
message here.
Does anybody ever faced a similar problem?
Any suggestions, hints, tips,....?
Thanx in advance and best regards
BB Hi.
I am a using Outlook 2000 on Windows XP and I am programming with VB6.
Currently I'm facing a strange problem with deleting a mapi folder
programmtically.
Situation: There are around 50 mapi folders (Fold01 - Folder48) that
have been created initially. Each of these folders does contain one!
subfolder. When Outlook starts, my COM-Adding should delete each
subfolder of each toplevel folder. This is done with
TopFolder.Subfolder.Delete. Subfolder of couse is of type MapiFolder.
This seems to work for the first 20 folders but when it comes to the
21st Outlook throws an error saying:
"Unable to delete this folder. Right-click the folder, and then click
Properties to check your permissions for the folder. See the folder
owner or your administrator to change your permissions."
According to this error message I've got some permission problem.
Unfortunately this not true because I did (more than once) randomize
the order in which each of the subfolders should be removed. Strangly
enough it is always the 21st folder that refuses to remove.
I did then try to remove these remaining folders manually. Same error
message here.
Does anybody ever faced a similar problem?
Any suggestions, hints, tips,....?
Thanx in advance and best regards
Jules