Outlook 2016似乎没有可能在打印HTML邮件时改变文本大小,我想用宏来解决这个问题。
它应:
到目前为止,我想出的一点是:
Sub test()
ActiveExplorer.Selection(1).Display
ActiveExplorer.Selection(1).BodyFormat = olFormatHTML
ActiveInspector.CommandBars.ExecuteMso "EditMessage"
SendKeys "^(a)"
SendKeys "^+(<)"
SendKeys "^+(<)"
SendKeys "^+(<)"
SendKeys "^+(<)"
SendKeys "%(du)"
End Sub
它起作用了,但我对此并不满意。
不需要SendKeys,我怎么能完成第4-6步呢?
发布于 2019-01-25 07:55:56
尝尝这个
Option Explicit
Public Sub Example()
Dim olMsg As Object
Set olMsg = ActiveExplorer.selection.Item(1)
Dim Email As Outlook.MailItem
If TypeOf olMsg Is MailItem Then
Set Email = olMsg
If Email.BodyFormat <> olFormatHTML Then
Email.BodyFormat = olFormatHTML
Email.Body = "<font size=" & "30" & ">" & Email.Body & "</font>"
Email.Save
Email.Display
ActiveInspector.CommandBars.ExecuteMso "FilePrintPreview"
End If
End If
End Sub
https://stackoverflow.com/questions/54356910
复制相似问题