G
Greg J
I know you can highlight multiple messages in Explorer then drag and
drop them onto an Outlook folder to move the messages into Outlook.
I want to be able to do this programmatically (for multiple folders
and messages). I have tried a multitude of avenues only to achieve
unacceptable results.
I feel the only way to do this is to emulate the drag/drop action from
Explorer to Outlook via code (VB/VBA please).
I have been pursuing an answer to this for over 12 months. Preferably,
I would like to find a solution that does not require CDO nor third
party apps.
Forget suggesting Redemption.
..FileCopy(Filename,DestFolder) is not acceptable as you are limited to
what folders to copy the message to and the date of the copied message
is the date of when the copy was performed and not the original
receive date of the message.
The closest I have got is opening the message with ShellExecute API,
trapping the Explorer window and getting access to the MailItem. Then
copy the MailItem object to the required Outlook folder. This option
was not satisfactory as I could not work out a way to hide the opened
Outlook Explorer window (ShellExecute will only hide .exe files).
The only way I can think to do it is emulating whatever Windows does
when you manually drag & drop from Explorer to Outlook.
Does anyone have any ideas on how this might be done?
drop them onto an Outlook folder to move the messages into Outlook.
I want to be able to do this programmatically (for multiple folders
and messages). I have tried a multitude of avenues only to achieve
unacceptable results.
I feel the only way to do this is to emulate the drag/drop action from
Explorer to Outlook via code (VB/VBA please).
I have been pursuing an answer to this for over 12 months. Preferably,
I would like to find a solution that does not require CDO nor third
party apps.
Forget suggesting Redemption.
..FileCopy(Filename,DestFolder) is not acceptable as you are limited to
what folders to copy the message to and the date of the copied message
is the date of when the copy was performed and not the original
receive date of the message.
The closest I have got is opening the message with ShellExecute API,
trapping the Explorer window and getting access to the MailItem. Then
copy the MailItem object to the required Outlook folder. This option
was not satisfactory as I could not work out a way to hide the opened
Outlook Explorer window (ShellExecute will only hide .exe files).
The only way I can think to do it is emulating whatever Windows does
when you manually drag & drop from Explorer to Outlook.
Does anyone have any ideas on how this might be done?