메일 첨부 Excel 파일 읽기


4

Outlook의 전자 메일에 첨부 된 Excel 파일을 쉽게 읽을 수있는 방법이 있습니까? 이것이 스크립트 가능하다는 것을 확신하지만, 특히 쓰고 싶지 않습니다.

이를 달성 할 수있는 프로그램이 있습니까?

답변:


1

귀하의 질문에 대한 광범위한 답변은 매우 상세하지 않았습니다

  • 즉, 당신은 읽기로 무엇을 의미합니까?
  • 폴더의 모든 메시지 등)

다음 VBA를 사용하여 Outlook 폴더의 모든 메시지에서 모든 Excel 파일을 제거 할 수 있습니다

이 코드는 첨부 파일이 C : \ test에 저장 될 때받은 편지함의 모든 Excel 파일 아래에 "temp"라는 Outlook 폴더의 메시지를 확인합니다.

https://stackoverflow.com/questions/7890612/excel-vba-code-to-save-an-attachment-excel-file-from-an-outlook-email-that-was의 다른 샘플 코드

Sub SaveOlolAttachments()

    Dim olFolder As Outlook.MAPIFolder
    Dim olMsg As Outlook.MailItem
    Dim olAtt As Outlook.olAttachment
    Dim fsSaveFolder As String
    strSaveFolder = "C:\test\"

    'My testing done in Outlok using a "temp" folder underneath Inbox
    Set olFolder = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
    Set olFolder = olFolder.Folders("Temp")
    If olFolder Is Nothing Then Exit Sub

    For Each olMsg In olFolder.Items
        For Each olAtt In olMsg.olAttachments
            If Right$(olAtt.FileName, Len(olAtt.FileName) - InStrRev(olAtt.FileName, ".")) Like "xl?*" Then olAtt.SaveAsFile fsSaveFolder & olAtt.FileName
        Next
    Next
End Sub

멋진 감사합니다, 나는 그것을 테스트합니다. 올바른 파일을 가져 와서 고유하게 저장하려면 약간 조정해야합니다.
— Keltari
당사 사이트를 사용함과 동시에 당사의 쿠키 정책과 개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.