admin管理员组

文章数量:1530938

2024年7月18日发(作者:)

如何在Outlook回复时带上附件

Sub ReplyWithAttachments()

Dim rpl As em

Dim itm As Object

Set itm = GetCurrentItem()

If Not itm Is Nothing Then

Set rpl =

CopyAttachments itm, rpl

y

End If

Set rpl = Nothing

Set itm = Nothing

End Sub

Function GetCurrentItem() As Object

Dim objApp As ation

Set objApp = Application

On Error Resume Next

Select Case TypeName(Window)

Case "Explorer"

Set GetCurrentItem = (1)

Case "Inspector"

Set GetCurrentItem = tItem

End Select

Set objApp = Nothing

End Function

Sub CopyAttachments(objSourceItem, objTargetItem)

Set fso = CreateObject("stemObject")

Set fldTemp = cialFolder(2) ' TemporaryFolder

strPath = & ""

For Each objAtt In ments

strFile = strPath & me

File strFile

strFile, , , yName

File strFile

Next

Set fldTemp = Nothing

Set fso = Nothing

End Sub

Sub ReplyToAllWithAttachments()

Dim rpl As em

Dim itm As Object

Set itm = GetCurrentItem()

If Not itm Is Nothing Then

Set rpl = ll

CopyAttachments itm, rpl

y

End If

Set rpl = Nothing

Set itm = Nothing

End Sub

本文标签: 附件带上回复