Outlook VBA, very fast help with 5 lines code

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]

Case "Test"

MsgBox "Mail received"

End Select

End Sub

Skills: Microsoft Outlook, Visual Basic, Visual Basic for Apps

See more: outlook vba report, process incoming mails outlook vba, outlook vba process incoming mail, vba optimization algorithm, vba optimization solver, excel slow after running macro, how to make macro run faster, excel 2013 macro very slow, excel 2016 macro running slow, optimize vba code, excel macro running slow, outlook vba mht, extract email address email outlook vba, outlook vba cursor paste task field, mhtml outlook vba, outlook vba print mail, extracting data outlook vba, outlook vba move email, outlook vba export complete project, outlook vba code extract text

About the Employer:
( 15 reviews ) Innsbruck, Austria

Project ID: #17615557

13 freelancers are bidding on average €27 for this job


Hi let’s connect to debug this. Thanks A

€30 EUR in 3 days
(88 Reviews)

I Will test somethings with Microsoft Office Outlook and VBA. I have experience. Mohsan

€30 EUR in 1 day
(33 Reviews)

I have excellent command on VBA. I have completed complex projects in VBA before . You can see the reviews of the same in my profile

€30 EUR in 1 day
(28 Reviews)

Hi, try the follow: Private WithEvents Items As [login to view URL] Private Sub Application_Startup() Dim olApp As [login to view URL] Set olApp = [login to view URL] Set Items = GetNS(olApp).GetDefaultF More

€20 EUR in 0 days
(24 Reviews)

Greetings for the Day!!! I have 8 years of experience in .NET, VBA Macros, VB script,PS Script and VB creation with application like SAP, Internet explorer, Microsoft Outlook,PDF& Text files, MS Access and SQL Serv More

€34 EUR in 1 day
(29 Reviews)

Hi I have 10+ experience in Advance Excel, VBA, Macros and other office integration development. I am sure i can handle your request

€24 EUR in 1 day
(4 Reviews)

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]

€30 EUR in 1 day
(9 Reviews)

Please review my profile I am working with skills that you required for this job for 16 years. I am working with MS Access, Excel, MS SQL, VBA and .Net for a long time. I can definitely help you with this job, to ma More

€55 EUR in 1 day
(4 Reviews)

Hallo, ich galube, es liegt daran, dass der Event BeforeItemMove den QuellOrdner überwacht und nicht den Zielordner. Insofern ist es m.M nach, nicht der richtige Ansatz. Es ist natürlich nicht ohne, wenn ich Ihre More

€28 EUR in 1 day
(1 Review)

Get Excel Expert - 12+ Years of Experience in MNC - with Vast knowledge on Outlook/Excel Macro, VBA & Office Automation I will be able to make your code work when the specific folder gets a new email. To know mor More

€9 EUR in 1 day
(0 Reviews)

I’m a certified Automation Engineer with VBA experience. I can create amend this code in the asked time

€19 EUR in 1 day
(0 Reviews)

New to Freelancer! I am a senior consultant in business intelligence and data analytics at one of the big 4, and work with large datasets everyday. I have 8 years of experience in Programming in VBA/Excel. I can eas More

€23 EUR in 1 day
(0 Reviews)

I am a VBA expert with expertise in excel, outlook and word. I am clear with the requirement, let me know if you want to discuss in detail.

€24 EUR in 2 days
(0 Reviews)