vba 读取msg文件

2020-05-26  本文已影响0人  孙友强

废话不多说,直接上代码!

Sub ReadContentFromMsg()

Dim App As Object

Dim Msg As Object Set App = CreateObject("Outlook.Application")

Set Msg = App.Session.OpenSharedItem("C:\Users\Desktop\test.msg")

MsgBox Msg.Subject

Set App = Nothing

Set Msg = Nothing

End Sub

上一篇 下一篇

猜你喜欢

热点阅读