I have a requirement where process should read .msg file which saved in a shared folder not in Outlook. I found there is no straight forward VBO exist to read the data from msg file. So what I am trying to do is, I will convert the .msg file into Text file and then Process can read the text file. So converting from msg file to text file, can anybody help me to provide any macro if you guys have developed similarly. Or Any alternative way is there to read all data from .msg file directly through our VBOs which I am missing completely. I have developed a macro (Mentioned below) but while converting Outlook is throwing a security warning message on the screen where we have to press allow button to complete the macro step. I don't know how to disable that Outlook warning pop up through macro. Please help me if anybody have any solution for this.
Dim OL As Object
Set OL = CreateObject("Outlook.Application")
Dim Msg
Set Msg = OL.CreateItemFromTemplate("C:\Temp\RE MT399 - URO979368CC.msg")
Msg.SaveAs "C:\Temp\test.txt", olTXT
------------------------------
Ashis Kumar Ray
RPA Developer
TCS
Europe/London
------------------------------