Error from Folder.MoveTo function

S

Shad

I am trying to move a folder to another location from within a custom
form. Executing the MoveTo function I get the error :

"Cannot copy this folder because it may contain private items".

Is this because the folder I am trying to move contains the custom
form that I have open, and am executing the code from ? Another
reason ?

I can drag and drop this folder to it's new location without problems,
even with the custom form open. It only happens when using MoveTo in
the VBS code.

Thanks,

Steve.
 
S

Shad

I have tested the scenaro where I attempt to move a different folder
from that containing the current custom form. I get the same error.

I should also add that all the folders here are in a shared mailbox
and the custom form is in my "Personal forms library".

Steve
 
S

Shad

Another test has demonstrated that this problem is related to the fact
that the folders are in a shared mailbox. If I run this in my
personal mailbox there is no problem.

Previously on this forum, I was directed to set "Allow script in
shared mailbox" in the Outlook settings in order to get the code
behind my custom form to run. Could this be another similar setting
required ? I have scanned through the options, but haven't yet found
anything that fixes this.

Steve.
 

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