메인 컨텐츠로 가기

Outlook에서 특정 폴더로 첨부 파일을 자동으로 다운로드 / 저장하는 방법은 무엇입니까?

Outlook에서 단일 이메일의 모든 첨부 파일을 저장하는 것은 간단하지만 첨부 파일 > 모든 첨부 파일 저장 옵션을 선택하면 여러 이메일의 첨부 파일, 특히 대량의 첨부 파일을 관리하는 것이 더 어려울 수 있습니다. 이 문서에서는 Outlook 이메일의 첨부 파일을 특정 폴더로 자동 다운로드하는 두 가지 효과적인 솔루션을 소개합니다. 이러한 방법은 수많은 이메일과 첨부 파일을 처리할 때 프로세스를 단순화하고 시간을 절약할 때 특히 유용합니다.


VBA 및 규칙을 사용하여 Outlook 첨부 파일을 폴더에 자동으로 다운로드

이 접근 방식에는 특정 규칙에 따라 실행될 때 Outlook 이메일의 첨부 파일을 자동으로 다운로드하여 지정된 폴더에 저장하는 VBA 스크립트 사용이 포함됩니다. 다음 단계를 진행하세요.

  1. PR 기사 Alt + F11 를 열려면 응용 프로그램 용 Microsoft Visual Basic 창.
  2. 끼워 넣다 > 모듈을 클릭한 다음 VBA 스크립트 아래에 새로 열린 스크립트에 붙여넣습니다. 모듈 창.

    VBA : Outlook 첨부 파일을 특정 폴더에 자동 저장

    Public Sub SaveAttachmentsToDisk(MItem As Outlook.MailItem)
    Dim oAttachment As Outlook.Attachment
    Dim sSaveFolder As String
    sSaveFolder = "C:\Users\DT168\Documents\outlook-attachments\"
    For Each oAttachment In MItem.Attachments
    oAttachment.SaveAsFile sSaveFolder & oAttachment.DisplayName
    Next
    End Sub

    참고 : 라인을 찾아주세요 sSaveFolder = "C : \ Users \ DT168 \ Documents \ outlook-attachments \", 원하는 대상 폴더의 경로로 바꾸십시오.

  3. VBA 스크립트를 저장하고 닫습니다. 응용 프로그램 용 Microsoft Visual Basic 창.
  4. 로 이동 우편 보기 및 클릭 > 규칙 > 규칙 및 경고 관리.
  5. 오프닝에서 규칙 및 경고 대화 상자에서 새로운 규칙 온 버튼 이메일 규칙 탭.
  6. . 규칙 마법사 나타나는 대화 상자에서 다음을 선택하십시오. 수신 한 메일에 규칙 적용 옵션을 클릭하고 다음 보기 버튼을 클릭합니다.
  7. . 규칙 마법사(어떤 조건을 확인하시겠습니까?) 대화 상자에서 다음 보기 아무 옵션도 선택하지 않고 버튼을 누르세요. 그런 다음 가능 팝업의 버튼 마이크로 소프트 아웃룩 대화 상자.
  8. 다음에서 규칙 마법사(메시지로 무엇을 하시겠습니까?) 대화 상자에서 다음과 같이 진행하십시오.
    1. 확인 스크립트 실행 옵션을 선택합니다. 팁 : 옵션이 보이지 않는다면, Outlook에서 "스크립트 실행" 옵션을 활성화하는 방법에 대한 이 튜토리얼로 이동하세요..
    2. 파란색 밑줄이 그어진 "스크립트" 텍스트를 클릭하여 스크립트 선택 대화 상자. 여기에서 추가한 스크립트를 선택하세요. 2단계 를 클릭하고 OK 버튼을 클릭합니다.
    3. 클릭 다음 보기 버튼을 클릭하십시오.
  9. . 규칙 마법사(예외가 있습니까?) 대화 상자에서 다음 보기 버튼을 직접 누르십시오.
  10. 마지막으로 규칙 마법사 대화 상자에서 규칙 이름을 지정하십시오. 1단계 상자에서 필요에 따라 옵션을 선택하십시오. 2단계 섹션을 클릭하고 마감재 버튼을 클릭합니다.
  11. 닫기 규칙 및 경고 대화 상자.

결과

이제 "받은 편지함에 이미 있는 메시지에 대해 지금 이 규칙 실행" 옵션을 선택한 경우 이메일 계정의 모든 첨부 파일이 다운로드되어 지정된 대상 폴더에 저장됩니다. 또한 "이 규칙 켜기" 옵션을 선택한 경우 수신 이메일의 모든 첨부 파일이 자동으로 다운로드되어 지정된 폴더에 저장됩니다.


Outlook용 Kutools를 사용하여 Outlook 첨부 파일을 폴더에 자동으로 다운로드

Outlook 용 Kutools 귀하의 컴퓨터에 설치된 자동 분리 기능을 사용하면 설정된 조건에 따라 전체 또는 특정 Outlook 첨부 파일을 자동으로 다운로드하여 선택한 폴더로 편리하게 보낼 수 있습니다. 또한 이 기능은 하위 폴더를 생성할 수 있는 유연성을 제공합니다. 이러한 하위 폴더의 이름을 지정하기 위한 두 가지 대안을 제공합니다. 다음과 같은 형식 중 하나를 선택할 수 있습니다. [메시지 폴더]-[메시지 제목], 또는 선택한 형식에 접미사로 사용자 정의 텍스트 문자열을 추가하도록 선택합니다. 이 기능은 첨부 파일의 구성과 접근성을 크게 향상시킵니다.

Outlook 용 Kutools: 100개 이상의 필수 도구로 Outlook을 강화하세요. 조건 없이 60일 동안 무료로 테스트해 보세요!   자세히보기 ...   지금 다운로드!

  1. 쿠툴 > 자동 분리 기능 대화 상자를 엽니다.
  2. . 첨부 파일 자동 분리 대화 상자에서 받은 모든 첨부 파일 자동 분리 옵션을 선택하고 다음과 같이 구성합니다.
    1. 찾아보기 버튼을 클릭하세요 자동으로 분리된 첨부 파일을 저장할 대상 폴더를 지정합니다.
    2. (선택 사항) 확인 아래 스타일로 첨부 파일을 분리하세요. 첨부 파일을 저장하기 위한 하위 폴더를 생성하려는 경우 옵션을 선택하세요.
      • 아래 스타일로 하위 폴더 만들기: 다음과 같이 미리 정의된 형식 중 하나로 하위 폴더의 이름을 지정합니다. [메시지 폴더]-[메시지 제목].
      • 아래 스타일로 저장된 첨부 파일의 이름을 바꿉니다.: 미리 정의된 형식 중 하나를 사용하여 하위 폴더의 이름을 지정하고 사용자 정의 텍스트 문자열을 접미사로 추가합니다.
    3. (선택 사항) 확인 첨부 파일 아이콘은 여전히 ​​이메일에 남아 있습니다. 첨부 파일이 있는 이메일에 시각적 표시를 유지하는 옵션입니다.
    4. 좋아요.

결과

이제부터 이메일을 받으면 모든 첨부 파일이 지정된 폴더에 자동으로 저장됩니다.

팁 : 특정 규칙에 따라 첨부 파일의 자동 분리를 설정하려면 규칙에 따라 첨부 파일 자동 분리 에서 옵션 첨부 파일 자동 분리 대화. 그 후 신제품 버튼을 눌러 필터 조건과 원하는 저장 설정을 정의하세요.

배송 시 요청 사항:

  • 액세스하고 싶습니까? 자동 분리 특징? 다운로드 Outlook 용 Kutools 지금! 이 외에도 Kutools는 100개 이상의 기타 기능을 자랑하며 60일 무료 평가판을 제공합니다. 기다리지 말고 오늘 한번 시도해 보세요!
  • Outlook에서 수신된 여러/모든 이메일에서 기존 첨부 파일을 분리하거나 다운로드하려면 Outlook용 Kutools를 적용하세요. 모두 분리 (첨부 파일) or 모두 저장(첨부파일) 기능.

관련 기사 :


최고의 사무 생산성 도구

Outlook 용 Kutools - 귀하의 전망을 강화하는 100개 이상의 강력한 기능

🤖 AI 메일 도우미: AI 마법이 적용된 즉각적인 전문가 이메일 - 원클릭으로 천재적인 답변, 완벽한 어조, 다국어 숙달이 가능합니다. 손쉽게 이메일을 변환하세요! ...

📧 이메일 자동화: 부재중(POP 및 IMAP에서 사용 가능)  /  이메일 보내기 예약  /  이메일 발송 시 규칙에 따른 자동 참조/숨은참조  /  자동 전달(고급 규칙)   /  인사말 자동 추가   /  여러 수신자 이메일을 개별 메시지로 자동 분할 ...

📨 이메일 관리: 이메일을 쉽게 기억할 수 있습니다.  /  제목 및 기타 사기 이메일 차단  /  중복 이메일 삭제  /  고급 검색  /  폴더 통합 ...

📁 첨부 파일 프로일괄 저장  /  일괄 분리  /  일괄 압축  /  자동 저장   /  자동 분리  /  자동 압축 ...

🌟 인터페이스 매직: 😊더 예쁘고 멋진 이모티콘   /  탭 보기로 Outlook 생산성 향상  /  문을 닫는 대신 전망을 최소화하세요 ...

???? 원클릭 불가사의: 수신 첨부 파일과 함께 전체 회신  /   피싱 방지 이메일  /  🕘발신자의 시간대 표시 ...

👩🏼‍🤝‍👩🏻 연락처 및 캘린더: 선택한 이메일에서 연락처 일괄 추가  /  연락처 그룹을 개별 그룹으로 분할  /  생일 알림 제거 ...

이상 100 특징 당신의 탐험을 기다려주세요! 더 알아보려면 여기를 클릭하세요.

 

 

Comments (115)
Rated 4.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Thank you for this information
This comment was minimized by the moderator on the site
May i ask some question?

I usually received mail to many people and many kinds of files.
So i should distinguish each file.
But now, It can`t.

So Did you have any idea for this?
(like chacnged file name or and so on...)

Thank you for your help

BR
Hansu
This comment was minimized by the moderator on the site
Thank you for your great code
This comment was minimized by the moderator on the site
Hi,
I create Module in Microsoft VBA & save it
However when go to create Rules in Outlook, I can't see the select box of "Run a script"
What is the reason & how to fix it?
Thank you
This comment was minimized by the moderator on the site
Hi there,

In some versions of Outlook, especially in more recent updates, the "Run a Script" option might be disabled by default due to security concerns. To enable the "Run a Script" option in Outlook, you usually need to modify the registry settings. Here's a general guide on how to do it:

1. Close Outlook: Make sure Outlook is not running.
2. Open Registry Editor: Press Win + R, type regedit, and hit Enter.
3. Navigate to the Outlook Security Settings: Depending on your version of Outlook, you'll need to navigate to a specific path in the Registry Editor. For example, for Outlook 2016, 2019, and Microsoft 365, you might navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Security.
4. Modify/Add the Registry Value:
4.1 Right-click in the right pane and choose New > DWORD (32-bit) Value.
4.2 Name the new value as EnableUnsafeClientMailRules.
4.3 Set its value to 1.
5. Close Registry Editor and restart your computer.
6. Open Outlook and check if the "Run a Script" option is available.
This comment was minimized by the moderator on the site
Ale kupa, oszuści. Maile zaczynają znikać. Nie mam moich wiadomości.
This comment was minimized by the moderator on the site
Hi, code works great however I am saving excel files and was wondering how I can modify the saved name. I recieve files like this "exa 2022-08.xlsx" how can I save the excel file as just "2022-08"?

this is my current code and my file saves however as just a file type not excel.

Public Sub PortlandDaily(MItem As Outlook.MailItem)
Dim oAttachment As Outlook.Attachment
Dim sSaveFolder As String
sSaveFolder = "T:\_Portland\Engineering Data\Daily Production Data\Test\"
For Each oAttachment In MItem.Attachments

Dim SplitName() As String
SplitName = Split(oAttachment.DisplayName, ".")

Dim RightName As String
RightName = Right(SplitName(0), 7)

Dim SaveName As String

SaveName = sSaveFolder & RightName

oAttachment.SaveAsFile sSaveFolder & oAttachment.DisplayName

Next
End Sub
Rated 4.5 out of 5
This comment was minimized by the moderator on the site
Hi there,

Please try the code below:
Public Sub PortlandDaily(MItem As Outlook.MailItem)
Dim oAttachment As Outlook.Attachment
Dim sSaveFolder As String
sSaveFolder = "T:\_Portland\Engineering Data\Daily Production Data\Test\"
For Each oAttachment In MItem.Attachments
  Dim SplitName() As String
  SplitName = Split(oAttachment.DisplayName, ".")
  Dim RightName As String
  RightName = Right(SplitName(0), 7) 'You can also declare the file name here, e.g., RightName = "2022-08"
  Dim SaveName As String
  SaveName = sSaveFolder & RightName & "." & SplitName(1)
  oAttachment.SaveAsFile SaveName
Next
End Sub


Amanda
This comment was minimized by the moderator on the site
Hi. is it possible to give the attachment file an entirely new name, using information form the mail (for example the date of delivery).
This comment was minimized by the moderator on the site
Hi,
How can I create a VBA to save attachment (Excel file) in my location drive when email received in my outlook folder and using the file name based on cell value...Many thanks

Regards,
Anthony On
This comment was minimized by the moderator on the site
Bonjour, j'ai réussi à rajouter "exécuter un script" dans les règles et faire fonctionner le script dans outlook. Les pièces jointes d'un mail bien précis s'enregistrent parfaitement dans le dossier demandé. Sauf que j'aimerais enregistrer uniquement les fichiers .txt, et non les .pdf qui s'incrémentent également. Aussi j'ai une autre requête s'il vous plaît, le script fonctionne très bien pour définir un dossier de destination, mais je souhaite définir d'autres règles qui me permettraient d'enregistrer les pièces jointes d'autres mails vers un autre dossier de destination. J'ai essayé de faire un 2e module VBA, cela ne fonctionne pas. J'ai généré un deuxième projet VBA mais Outlook n'en gère qu'un seul. Dans ce cas, comment remédier s'il vous plait ? Merci pour ce tuto très clair pour moi qui suis débutante.
This comment was minimized by the moderator on the site
Hi pearl,
Could you please send the code you generated so that we can fix it?
Amanda
This comment was minimized by the moderator on the site
Hi Can we  download the attachment contains specific letters using VBA code
This comment was minimized by the moderator on the site
Hi DAS,
When you said “the attachment contains specific letters”, did you mean you want to download the attachments from specific letters?
Amanda
This comment was minimized by the moderator on the site
Hi,
I executed the VBA + Rule option and it seemed to work perfectly. However, it recently stopped working with no errors. The rule is set to read the subject line, move to a certain folder if there is a certain subject, and then run the script. I know the trigger is working in the rule because the first action (move to folder) is working as it should.
Any idea why the rule trigger would work, but the documents are no longer being saved?
Things I have tried/checked:-The file path is correct-I added delays in various spots in the vba using application.wait-outlook has been shutdown and re-opened, and so has my laptop
(disclosure: I am a bit of a VBA newbie, but have beginner level coding knowledge)
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations