Hi,
I am writing a backup routine which will automatically file/move
emails from the inbox of any of our staff, into Public Folders, using
some simple rules. We have a team of remote workers, all using Outlook
2003 connected via VPN to Exchange. When testing the code, I've found
that manually moving a standard 'test set' of emails from Inbox to
Public Folder takes (say) 20 seconds. However, when I do it in code,
using something like this:
Dim m As Outlook.MailItem
m.Move DestinationFolder
(where DestinationFolder is a Public Folder, and I do a simple loop
through all the selected emails)
the same set of emails takes more than 2 minutes to the same Public
Folder location.
I assumed that the difference must be something to do with sync-ing
Public Folders, but
a) we don't use Favorites, and
b) when I watch 'live' on the Exchange server and get somebody to move
the test set of emails from a remote location, they appear fully moved
and readable on the Exchange server within 20 seconds (in other words,
the copy operation is not being cached in some way, locally, I
believe).
What's the difference between the VBA and manual move process, and how
can I get the code-based move to emulate the manual-based move?
Thanks,
RC.
Archived from group: microsoft>public>office>developer>outlook>vba