用于将电子邮件另存为文本文件的宏,将在规则中使用 [英] Macro to save e-mail as text file, to be used in a rule

查看:114
本文介绍了用于将电子邮件另存为文本文件的宏,将在规则中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题与此线程这一个.我认为我的问题是将这两个问题结合在一起.

My problem is very similar to this thread and this one. I think my issue is to combine these two questions.

我正在跑步:

  • 操作系统:Windows 7 Enterprise Professional
  • Outlook 2010
  • VBA 7.0版

通过阅读这两个问题以及Microsoft和其他地方的其他一些页面,我能够打开VB编辑器并将其粘贴到此简单代码中:

By reading these two questions as well as some other pages from Microsoft and elsewhere, I was able to open the VB editor and paste into it, this simple code:

Sub SaveEmail(msg As Outlook.MailItem)
  ' save as text
  msg.SaveAs "C:\Users\mel\mailsave\email.txt" & Format(Now, "YYYYMMDDHHMMSS"), _
      olTXT
End Sub

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆