Preskoči na glavno vsebino

Kako natisniti vse priloge v enem / več e-poštnih sporočilih v Outlooku?

Kot veste, bo e-poštno vsebino, na primer glavo, telo, natisnil šele, ko kliknete file > Tiskanje v Microsoft Outlooku, vendar ne natisnite prilog. Tu vam bomo pokazali, kako v programu Microsoft Outlook enostavno natisnete vse priloge v izbranem e-poštnem sporočilu.


Natisnite vse priloge v enem e-poštnem sporočilu enega za drugim

Microsoft Outlook nam ponuja Hitri tisk funkcija, s katero lahko eno za drugo natisnete priloge v e-poštnem sporočilu.

1. Izberite e-poštno sporočilo, katerega priloge boste pozneje natisnili.

2. Kliknite eno prilogo v tem e-poštnem sporočilu.

3. kliknite Hitri tisk gumb v Proces skupina na Priponke tab.

Opomba: Orodja za pritrditev ne bo aktiviran, dokler v e-poštnih sporočilih ne kliknete prilog.

4. Odpre se pogovorno okno za odpiranje poštne priloge in kliknite Odprto gumb.

Upoštevajte, da bo s tem korakom odprta izbrana priloga in natisnjena izbrana priloga hkrati.

Če želite natisniti druge priloge v tem e-poštnem sporočilu, ponovite 2. do 4. korak.

Hitro shranite / izvozite vse priloge iz več e-poštnih sporočil v Outlooku

Običajno lahko shranimo priloge iz enega e-poštnega sporočila z aktiviranjem Orodja za pritrditev in uporabo Shrani vse priloge funkcija v Outlooku. Kaj pa, če shranite priloge iz več e-poštnih sporočil ali iz celotne poštne mape v Outlooku? Preizkusite Kutools za Outlook Shrani vse Funkcija (Priloge).


shrani priloge v več e-poštnih sporočilih

Skupinsko natisnite vse priloge v enem e-poštnem sporočilu

Če je v enem e-poštnem sporočilu veliko prilog, bo njihovo tiskanje eno za drugo dolgotrajno. Naslednja metoda vas bo enostavno vodila skozi paketno tiskanje vseh prilog v izbranem e-poštnem sporočilu.

1. Izberite e-poštno sporočilo, katerega priloge boste pozneje natisnili.

2. V programu Outlook 2010 ali novejših različicah kliknite file > Tiskanje > Možnosti tiskanja. Oglejte si naslednji posnetek zaslona:

3. V pogovornem oknu Natisni označite Natisnite priložene datoteke. Priloge bodo natisnjene samo na privzetem tiskalniku možnost v Možnosti tiskanja oddelek.

4. kliknite Tiskanje gumb.

5. V pojavnem pogovornem oknu Odpiranje priloge pošte kliknite Odprto gumb za naprej. (Opombe: To pogovorno okno se bo prikazalo za vsako prilogo posebej.)

Zdaj bodo vse priloge v tem izbranem e-poštnem sporočilu natisnjene hkrati.


Paketno tiskanje vseh prilog in slik v več izbranih e-poštnih sporočilih

Če želite natisniti vse priloge v več e-poštnih sporočilih in vse slike v telesu sporočila v Outlooku, sledite spodnjim korakom za uporabo kode VBA.

1. Na poštnem seznamu pridržite Ctrl or Shift tipke, da izberete več e-poštnih sporočil, katerih priloge boste natisnili.

2. Pritisnite druga + F11 da odprete okno Microsoft Visual Basic for Applications.

3. V oknu Microsoft Visual Basic for Applications kliknite Orodja > Reference. In nato preverite Izvajanje Microsoftovih skriptov možnost, kot je prikazano spodaj. Ko končate, kliknite OK.

4. Kliknite Vstavi > Moduliin nato pod novo kodo VBA prilepite v novo okno modula.

VBA: natisnite vse priloge v več Outlookovih e-poštnih sporočilih

Sub PrintAllAttachmentsInMultipleMails()
  'Update by ExtendOffice 2022/08/03
  Dim xShellApp As Object
  Dim xFSO As Scripting.FileSystemObject
  Dim xItem As Object
  Dim xTempFldPath, xFilePath As String
  Dim xSelItems As Outlook.Selection
  Dim xMailItem As Outlook.MailItem
  Dim xAttachments As Outlook.Attachments
  Dim xAttachment As Outlook.Attachment
  Dim xFile As File
  On Error Resume Next
  Set xFSO = New Scripting.FileSystemObject
  xTempFldPath = xFSO.GetSpecialFolder(2).Path & "\Attachments " & Format(Now, "yyyymmddhhmmss") 'xFSO.GetSpecialFolder(2) For saving temporary files
  If xFSO.FolderExists(xTemfldpath) = False Then 'create temporary folder
    xFSO.CreateFolder (xTempFldPath)
  End If
  Set xSelItems = Outlook.ActiveExplorer.Selection
  Set xShellApp = CreateObject("Shell.Application")
  For Each xItem In xSelItems
    If xItem.Class = OlObjectClass.olMail Then
      Set xMailItem = xItem
      Set xAttachments = xMailItem.Attachments
      For Each xAttachment In xAttachments
        xFilePath = xTempFldPath & "\" & xAttachment.FileName
        xAttachment.SaveAsFile (xFilePath)
      Next
    End If
  Next
  For Each xFile In xFSO.GetFolder(xTempFldPath).Files
    VBA.DoEvents
    Call xShellApp.ShellExecute(xFile.Path, "", "", "print", 0)
  Next
  Set xSelItems = Nothing
  Set xShellApp = Nothing
  Set xFSO = Nothing
End Sub

5. Pritisnite F5 ali kliknite Run gumb za zagon te kode VBA. Zdaj boste videli, da so vse priloge v izbranih e-poštnih sporočilih in slike v telesu sporočila natisnjene.

Opomba:

  • Vsaka slika bo prikazala pojavno pogovorno okno, ki vas bo vprašalo za potrditev tiskanja. Medtem ko bodo druge vrste datotek natisnjene neposredno.
  • Če so v e-poštnem podpisu slike, se prikažejo tudi pojavna pogovorna okna.
  • Če prideš Makri v tem projektu so onemogočeni napaka, preverite to vadnico: Kako omogočiti in onemogočiti makre v Outlooku?

Paketno tiskanje vseh prilog v več izbranih e-poštnih sporočilih, razen slik v telesu

Če želite v Outlooku natisniti samo priloge v več e-poštnih sporočilih, razen slik v telesu sporočila, sledite spodnjim korakom za uporabo kode VBA.

1. Na poštnem seznamu pridržite Ctrl or Shift tipke, da izberete več e-poštnih sporočil, katerih priloge boste natisnili.

2. Pritisnite druga + F11 da odprete okno Microsoft Visual Basic for Applications.

3. V oknu Microsoft Visual Basic for Applications kliknite Orodja > Reference. In nato preverite Izvajanje Microsoftovih skriptov možnost, kot je prikazano spodaj. Ko končate, kliknite OK.

4. Kliknite Vstavi > Moduliin nato pod novo kodo VBA prilepite v novo okno modula.

VBA: natisnite vse priloge v več Outlookovih e-poštnih sporočilih

Sub PrintAllAttachmentsInMultipleMails()
  'Update by ExtendOffice 2022/08/05
  Dim xShellApp As Object
  Dim xFSO As Scripting.FileSystemObject
  Dim xItem As Object
  Dim xTempFldPath, xFilePath As String
  Dim xSelItems As Outlook.Selection
  Dim xMailItem As Outlook.MailItem
  Dim xAttachments As Outlook.Attachments
  Dim xAttachment As Outlook.Attachment
  Dim xFile As File
  On Error Resume Next
  Set xFSO = New Scripting.FileSystemObject
  xTempFldPath = xFSO.GetSpecialFolder(2).Path & "\Attachments " & Format(Now, "yyyymmddhhmmss") 'xFSO.GetSpecialFolder(2) For saving temporary files
  If xFSO.FolderExists(xTemfldpath) = False Then 'create temporary folder
    xFSO.CreateFolder (xTempFldPath)
  End If
  Set xSelItems = Outlook.ActiveExplorer.Selection
  Set xShellApp = CreateObject("Shell.Application")
  For Each xItem In xSelItems
    If xItem.Class = OlObjectClass.olMail Then
      Set xMailItem = xItem
      Set xAttachments = xMailItem.Attachments
      For Each xAttachment In xAttachments
        If IsEmbeddedAttachment(xAttachment) = False Then
          xFilePath = xTempFldPath & "\" & xAttachment.FileName
          xAttachment.SaveAsFile (xFilePath)
          Debug.Print xFilePath
        End If
      Next
    End If
  Next
  For Each xFile In xFSO.GetFolder(xTempFldPath).Files
    VBA.DoEvents
    Call xShellApp.ShellExecute(xFile.Path, "", "", "print", 0)
  Next
  Set xSelItems = Nothing
  Set xShellApp = Nothing
  Set xFSO = Nothing
End Sub

Function IsEmbeddedAttachment(Attach As Attachment)
Dim xItem As MailItem
Dim xCid As String
Dim xID As String
Dim xHtml As String
On Error Resume Next
IsEmbeddedAttachment = False
Set xItem = Attach.Parent
If xItem.BodyFormat <> olFormatHTML Then Exit Function
xCid = ""
xCid = Attach.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001F")
If xCid <> "" Then
    xHtml = xItem.HTMLBody
    xID = "cid:" & xCid
    If InStr(xHtml, xID) > 0 Then
        IsEmbeddedAttachment = True
    End If
End If
End Function

5. Pritisnite F5 ali kliknite Run gumb za zagon te kode VBA. Zdaj boste videli, da so vse priloge v izbranih e-poštnih sporočilih natisnjene.

Opomba:

  • Vsaka priložena slika bo prikazala pojavno pogovorno okno, ki vas bo vprašalo za potrditev tiskanja. Medtem ko bodo druge vrste datotek natisnjene neposredno.
  • Slike v telesu sporočila ne bodo natisnjene.
  • Če prideš Makri v tem projektu so onemogočeni napaka, preverite to vadnico: Kako omogočiti in onemogočiti makre v Outlooku?

 


Predstavitev: natisnite eno ali vse priloge v Outlookovem e-poštnem sporočilu


Nasvet: V tem videu, Kutools zavihek doda Kutools za Outlook. Če jo potrebujete, kliknite tukaj imeti 60-dnevno brezplačno preskusno različico brez omejitev!


Najboljša pisarniška orodja za produktivnost

Kutools za Outlook - Več kot 100 zmogljivih funkcij za nadgradnjo vašega Outlooka

🤖 AI poštni pomočnik: Takojšnja profesionalna e-poštna sporočila z umetno inteligenco – z enim klikom do genialnih odgovorov, popoln ton, večjezično znanje. Preoblikujte pošiljanje e-pošte brez napora! ...

📧 Avtomatizacija e-pošte: Odsoten (na voljo za POP in IMAP)  /  Načrtujte pošiljanje e-pošte  /  Samodejna CC/BCC po pravilih pri pošiljanju e-pošte  /  Samodejno naprej (napredna pravila)   /  Samodejno dodaj pozdrav   /  E-poštna sporočila več prejemnikov samodejno razdeli na posamezna sporočila ...

📨 Email upravljanje: Enostaven priklic e-pošte  /  Blokiraj prevarantska e-poštna sporočila glede na teme in druge  /  Izbriši podvojena e-poštna sporočila  /  napredno iskanje  /  Združite mape ...

📁 Priloge ProShrani paket  /  Batch Detach  /  Paketno stiskanje  /  Samodejno shranite   /  Samodejno loči  /  Samodejno stiskanje ...

🌟 Vmesnik Magic: 😊Več lepih in kul emojijev   /  Povečajte Outlookovo produktivnost s pogledi z zavihki  /  Minimizirajte Outlook, namesto da bi ga zaprli ...

???? Čudeži z enim klikom: Odgovori vsem z dohodnimi prilogami  /   E-poštna sporočila proti lažnemu predstavljanju  /  🕘Pokaži pošiljateljev časovni pas ...

👩🏼‍🤝‍👩🏻 Stiki in koledar: Paketno dodajanje stikov iz izbranih e-poštnih sporočil  /  Razdelite skupino stikov na posamezne skupine  /  Odstranite opomnike za rojstni dan ...

Over 100 Lastnosti Čakajte na svoje raziskovanje! Kliknite tukaj, če želite odkriti več.

 

 

Comments (24)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Is it possible to specify a network printer instead of always printing with the standard printer?
This comment was minimized by the moderator on the site
Dear all,

I had tried the VBA and the code runs but many popups are opening on screen to print images from the mail signature (apparently this is considered an attachment). Anyone knows how to solve it?

S.
This comment was minimized by the moderator on the site
If you don't want to print pictures in the body of a message, please use the code below:
Sub PrintAllAttachmentsInMultipleMails()
  'Update by ExtendOffice 2022/08/05
  Dim xShellApp As Object
  Dim xFSO As Scripting.FileSystemObject
  Dim xItem As Object
  Dim xTempFldPath, xFilePath As String
  Dim xSelItems As Outlook.Selection
  Dim xMailItem As Outlook.MailItem
  Dim xAttachments As Outlook.Attachments
  Dim xAttachment As Outlook.Attachment
  Dim xFile As File
  On Error Resume Next
  Set xFSO = New Scripting.FileSystemObject
  xTempFldPath = xFSO.GetSpecialFolder(2).Path & "\Attachments " & Format(Now, "yyyymmddhhmmss") 'xFSO.GetSpecialFolder(2) For saving temporary files
  If xFSO.FolderExists(xTemfldpath) = False Then 'create temporary folder
    xFSO.CreateFolder (xTempFldPath)
  End If
  Set xSelItems = Outlook.ActiveExplorer.Selection
  Set xShellApp = CreateObject("Shell.Application")
  For Each xItem In xSelItems
    If xItem.Class = OlObjectClass.olMail Then
      Set xMailItem = xItem
      Set xAttachments = xMailItem.Attachments
      For Each xAttachment In xAttachments
        If IsEmbeddedAttachment(xAttachment) = False Then
          xFilePath = xTempFldPath & "\" & xAttachment.FileName
          xAttachment.SaveAsFile (xFilePath)
          Debug.Print xFilePath
        End If
      Next
    End If
  Next
  For Each xFile In xFSO.GetFolder(xTempFldPath).Files
    VBA.DoEvents
    Call xShellApp.ShellExecute(xFile.Path, "", "", "print", 0)
  Next
  Set xSelItems = Nothing
  Set xShellApp = Nothing
  Set xFSO = Nothing
End Sub

Function IsEmbeddedAttachment(Attach As Attachment)
Dim xItem As MailItem
Dim xCid As String
Dim xID As String
Dim xHtml As String
On Error Resume Next
IsEmbeddedAttachment = False
Set xItem = Attach.Parent
If xItem.BodyFormat <> olFormatHTML Then Exit Function
xCid = ""
xCid = Attach.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x3712001F")
If xCid <> "" Then
    xHtml = xItem.HTMLBody
    xID = "cid:" & xCid
    If InStr(xHtml, xID) > 0 Then
        IsEmbeddedAttachment = True
    End If
End If
End Function
This comment was minimized by the moderator on the site
Dear Amanda,

Thank you for the code. It worked!

S.
This comment was minimized by the moderator on the site
Hi there,

Sorry that printing images will bring up popups. You will have to confirm each to download all the images. If you don't need to print images, please click Cancel.

Amanda
This comment was minimized by the moderator on the site
I am using Microsoft 365 and this worked after deleting line 9. Thanks! This has saved a bit of time for me.
Rated 5 out of 5
This comment was minimized by the moderator on the site
hallo, ich möchte nur den Anhang der Mails von der angegebenen Adresse senden, wie kann ich das machen, danke
This comment was minimized by the moderator on the site
Vielen, vielen Dank dafür! Hat uns enorm viel Arbeit erspart.Auch ich musste - wie bereits in den Kommentaren geschrieben - die neunte Zeile "Dim xAttachment As Outlook.Attachment On Error Resume Next" entfernen, dann lief der Code einfandfrei durch.
This comment was minimized by the moderator on the site
Hi, this worked fine for me yesterday but now it is saying 'the macros in this project are disabled' Any advice how to enable them? 
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
on line 9 , removing "On Error Resume Next" worked for me.
This comment was minimized by the moderator on the site
Hi everyone, we updated the VBA code in the tutorial on 2022/08/03. If you still need to print all attachments, please check the new code. 😊
This comment was minimized by the moderator on the site
Hi, I have been using this shortcut for a few weeks now, printing all attachments from multiple emails at once, and I have recently been having to remove line 9 as Nilanka said, which has been working, but this no longer works. Im getting the warning box saying the macros in this project are disabled.....and so on... if someone has a solution to make this work as it has been prior to now, please lmk, as i am selecting about 60 emails all containing attachments to print. Thanks
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Thank you 
This comment was minimized by the moderator on the site
yes this just worked for me as well. Thank you!
This comment was minimized by the moderator on the site
the VBA code gives syntax is error
This comment was minimized by the moderator on the site
if a pdf has the same name the macro prints just one pdf, how can i change the code in order to modify the pdf name?
This comment was minimized by the moderator on the site
if you want to print all attachments together in 1 email here's what you do. first make a folder on your desktop....I named mine "print". go to the email with the attachments....highlight all of the attachments, right click, save all attachments to the print folder. Open the print folder.....highlight all of them.....right click.....print.



now if only I could figure out how to print all the attachments in 200 emails without opening each one and printing it.
This comment was minimized by the moderator on the site
Kutools for Outlook's Detach All (Attachments) feature can help you download all attachments from multiple emails with several clicks! https://www.extendoffice.com/product/kutools-for-outlook/outlook-detach-attachments.html
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