Thomas PAIK
asked on
How do I copy an Item without using the move command in Outlook 2010 VBA?
https://docs.microsoft.com/en-us/office/vba/api/outlook.mailitem.copy
Please refer to the above link first.
These two lines of VBA code works as follows:
1.The copy command duplicates myItem in myFolder, say myCopiedItem, and
2.the move command moves myCopiedItem to myNewFolder, and then
3.automatically deletes myCopiedItem from myFolder, and then
4.the deleted myCopiedItem is automatically trashed(moved) into the Junk folder.
FYI, 3 and 4 are not explicitly mentioned in the above link.
My questions are:
Q1. How do I copy myItem from myFolder to myNewFolder without making a duplicate copy? I do not want to make a duplicate copy, say myCopiedItem, in myFolder.
Q2. How do I copy myItem from myFolder to myNewFolder without using the move command? Using the move command seems to send myCopiedItem from myFolder into the Junk folder, due to the inherent delete & trash operations of 3 & 4, respectively.
I am using outlook 2010.
Please refer to the above link first.
Set myCopiedItem = myItem.Copy
myCopiedItem.Move myNewFolder ' this also moves myItem in myFolder into the Junk folder!
These two lines of VBA code works as follows:
1.The copy command duplicates myItem in myFolder, say myCopiedItem, and
2.the move command moves myCopiedItem to myNewFolder, and then
3.automatically deletes myCopiedItem from myFolder, and then
4.the deleted myCopiedItem is automatically trashed(moved) into the Junk folder.
FYI, 3 and 4 are not explicitly mentioned in the above link.
My questions are:
Q1. How do I copy myItem from myFolder to myNewFolder without making a duplicate copy? I do not want to make a duplicate copy, say myCopiedItem, in myFolder.
Q2. How do I copy myItem from myFolder to myNewFolder without using the move command? Using the move command seems to send myCopiedItem from myFolder into the Junk folder, due to the inherent delete & trash operations of 3 & 4, respectively.
I am using outlook 2010.
ASKER
Yes, but how can I do it using VBA?
Did you see my suggestion for VBA?
»bp
»bp
Are you looking to do bulk moves. ?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Open in new window
»bp