Get the folder where the last mailitem was moved in Outlook?
Posted
by
user2892971
on Stack Overflow
See other posts from Stack Overflow
or by user2892971
Published on 2013-10-18T03:43:41Z
Indexed on
2013/10/18
3:54 UTC
Read the original article
Hit count: 115
outlook
|outlook-vba
I have a vbscript macro that I'm using in Outlook. It moves a mailitem to some folder, say X. After I run the macro and I try to manually move a mailitem from Outlook with Control-v, it defaults to folder X. I would like Control-v to default to the folder that it would have used before I ran the macro.
Is there some way in VBScript to find out what folder the last mailitem was move to, and to return that to be the default folder after I run my script? Or is there a way to move a mailitem in my script without the destination folder being remembered by Outlook Control-v after I run the script?
Thanks for any hints.
© Stack Overflow or respective owner