'Outlook.MailItem' is not defined. Invoke code problem

@Tiramisu

Please look into Read a .msg file and save attachement

This might help you.