kashif.special2005
Active Member
- Joined
- Oct 26, 2009
- Messages
- 443
Hi,
I hope all of you are doing good and staying safe and healthy, I want your expert help on a problem that I am facing in Excel VBA code:
I have a mail in outlook and through "Move" method I am moving this mail to a different folder, now what I want is that I want to take a reference of this mail from the moved folder.
Suppose "A" is a folder where have a mail and I want to move this mail to the folder "B", through below code I am moving this mail from folder "A" to folder "B".
set MyNameSpace=Outlook.Application.GetNamespace("MAPI")
Set Mymail=ActiveExplorer.Selection.Item(1)
Set B = MyNameSpace.folders("Inbox").folders("B")
Mymail.Move B
Now, after moving the mail in the folder "B" I want to take the reference of this mail from the folder "B".
I don't know how to do this, my kind request to you please help me how can I do this.
Thanks in advance for your help.
Thanks
Kashif
I hope all of you are doing good and staying safe and healthy, I want your expert help on a problem that I am facing in Excel VBA code:
I have a mail in outlook and through "Move" method I am moving this mail to a different folder, now what I want is that I want to take a reference of this mail from the moved folder.
Suppose "A" is a folder where have a mail and I want to move this mail to the folder "B", through below code I am moving this mail from folder "A" to folder "B".
set MyNameSpace=Outlook.Application.GetNamespace("MAPI")
Set Mymail=ActiveExplorer.Selection.Item(1)
Set B = MyNameSpace.folders("Inbox").folders("B")
Mymail.Move B
Now, after moving the mail in the folder "B" I want to take the reference of this mail from the folder "B".
I don't know how to do this, my kind request to you please help me how can I do this.
Thanks in advance for your help.
Thanks
Kashif