I want to test somethings with Microsoft Office Outlook and VBA. I want to generate a message box when a mail item is put into a specific folder. I hope someone can help me an tell me my mistake.
The code, which I put into ThisOutlookSession, is here, but it does not work:
Private Sub objInbox_BeforeItemMove(ByVal Item As Object, ByVal MoveTo As MAPIFolder, Cancel As Boolean)
Select Case [login to view URL]
MsgBox "Mail received"
13 freelancers are bidding on average €27 for this job
I am a VBA programmer and I have a lot of experience in creating macros. I already have the solution to your problem, you may check a video screenshot here: [login to view URL]