Note: The other languages of the website are Google-translated. Back to English

Sut i archifo heb atodiadau yn Outlook?

Yn gyffredinol, bydd nodwedd Archif Outlook yn arbed yr holl elfennau e-bost, gan gynnwys cynnwys e-bost, pennawd e-bost, atodiadau e-bost, ac ati. Fodd bynnag, gall yr atodiadau wneud y ffeil PST sydd wedi'i harchifo yn swmpus. Yma, byddaf yn cyflwyno dau ddatrysiad i'r archif heb atodiadau yn Outlook.

Tab Swyddfa - Galluogi Golygu a Phori Tabbed yn y Swyddfa, a Gwneud Gwaith yn Haws Orau ...
Kutools for Outlook - Yn Dod â 100 o Nodweddion Uwch Pwerus i Microsoft Outlook
  • Auto CC / BCC yn ôl rheolau wrth anfon e-bost; Auto Ymlaen E-byst Lluosog yn ôl rheolau; Ymateb Auto heb weinydd cyfnewid, a nodweddion mwy awtomatig ...
  • Rhybudd BCC - dangos neges pan geisiwch ateb popeth os yw'ch cyfeiriad post yn rhestr BCC; Atgoffwch Wrth Ymlyniadau ar Goll, a mwy o nodweddion atgoffa ...
  • Ymateb (Pawb) Gyda'r Holl Atodiadau yn y sgwrs bost; Ateb Llawer o E-byst ar unwaith; Auto Ychwanegu Cyfarchiad wrth ateb; Auto Ychwanegu Dyddiad ac Amser yn destun ...
  • Offer Ymlyniad: Auto Detach, Cywasgu Pawb, Ail-enwi Pawb, Auto Save All ... Adroddiad Cyflym, Cyfrif Postiau Dethol, Tynnwch y Post a Chysylltiadau Dyblyg ...
  • Bydd mwy na 100 o nodweddion uwch datrys y rhan fwyaf o'ch problemau yn Outlook 2010-2019 a 365. Nodweddion llawn treial am ddim 60 diwrnod.

Archif heb atodiadau gan VBA

Bydd y dull hwn yn cyflwyno VBA i ddileu'r holl atodiadau o'r ffolder penodedig y byddwch chi'n eu harchifo, ac yna gallwch chi archifo heb atodiadau. Gwnewch fel a ganlyn:

1. Yn y bost gweld, dewiswch y ffolder y byddwch chi'n ei archifo, a'i wasgu Alt + F11 allweddi i agor ffenestr Microsoft Visual Basic for Applications.

2. Cliciwch Mewnosod > Modiwlau, ac yna pastiwch islaw VBA i mewn i ffenestr y modiwl newydd.

VBA: Tynnwch yr holl atodiadau o'r ffolder post a ddewiswyd yn Outlook

Public Sub SaveDeleteAttachments()
Dim xMailItem As Outlook.MailItem 'Object
Dim xAttachments As Outlook.Attachments
Dim i As Long
Dim xFolder As Folder
Dim xFilePath As String
Dim xFldPath As String
Dim xDeletedFilePath As String
On Error Resume Next
xFldPath = CreateObject("WScript.Shell").SpecialFolders(16)
xFldPath = xFldPath & "\MyAttachments"
If Dir(xFldPath, vbDirectory) = "" Then
MkDir xFldPath
End If
Set xFolder = Outlook.Application.ActiveExplorer.CurrentFolder
For Each xMailItem In xFolder.Items
If xMailItem.Class = olMail Then
Set xAttachments = xMailItem.Attachments
While xAttachments.Count > 0
xFilePath = xAttachments.Item(1).FileName
xFilePath = xFldPath & "\" & xFilePath
xAttachments.Item(1).SaveAsFile xFilePath
xAttachments.Item(1).Delete
If xMailItem.BodyFormat <> olFormatHTML Then
xDeletedFilePath = xDeletedFilePath & vbCrLf & "<file://" & xFilePath & ">"
Else
xDeletedFilePath = xDeletedFilePath & "
" & "" & xFilePath & "" End If Wend If xDeletedFilePath <> "" Then If xMailItem.BodyFormat <> olFormatHTML Then xMailItem.Body = "The file(s) were saved to: " & xDeletedFilePath & vbCrLf & xMailItem.Body Else xMailItem.HTMLBody = "

" & _ "The file(s) were saved to: " & xDeletedFilePath & "

" & xMailItem.HTMLBody End If xMailItem.Save xDeletedFilePath = "" End If End If Next Exit Sub: Set xAttachments = Nothing Set xMailItem = Nothing End Sub

3. Press the F5 key or click the Run button to run the code. Then all attachments are removed from the selected mail folder immediately.

4. Click File > Info > Tools > Clean Up Old Items (or File > Info > Cleanup Tools > Archive).

5. In the Archive dialog box, please click to highlight the copied folder, type TODAY in the Archive items older than box, and then click the Browse button. See screenshot:

6. In the Open Outlook Data Files dialog box, please open the folder you will save the archived PST file in, name the PST file in the File name box, and then click the OK button. See screenshot:

7. Now you return to the Archive dialog box, please click the OK button to finish the archiving.
So far, you have archived the mail folder without any attachments.


Archive without attachments by Kutools for Outlook

If you have Kutools for Outlook installed, you can apply its Detach All feature to quickly delete all attachments from the specified folder you will archive, and then archive without attachments easily.

Kutools for Outlook: Add more than 100 handy tools for Outlook, free to try with no limitation in 60 days. Read More      Free Trial Now

1. In the Mail view, open the specified mail folder you will archive, select all emails with pressing Ctrl + A keys, and then click Kutools > Detach All. See screenshot:

2. In the Please select a folder dialog box, click the Browse button  to specify the folder you will save the attachment in, specify a subfolder style from the create subfolders in the following style drop down list, and click the Ok button. See screenshot:

3. Please click Yes button and OK button successively in the popping out dialog boxes.

4. Go on to click File > Info > Tools > Clean Up Old Items (or File > Info > Cleanup Tools > Archive).

5. In the Archive dialog box, please click to highlight the specified folder you will archive without attachments, type TODAY in the Archive items older than box, and then click the Browse button. See screenshot:

6. In the Open Outlook Data Files dialog box, please open the folder you will save the archived PST file in, name the PST file in the File name box, and then click the OK button. See screenshot:

7. Now you return to the Archive dialog box, please click the OK button to finish the archiving.

So far, you have archived the specified mail folder without attachments already.

Kutools for Outlook: Add more than 100 handy tools for Outlook, free to try with no limitation in 60 days. Read More      Free Trial Now


Related Articles


Kutools for Outlook - Brings 100 Advanced Features to Outlook, and Make Work Much Easier!

  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by custom; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails in seconds; Auto Add Greeting when reply; Add Date into subject...
  • Attachment Tools: Manage All Attachments in All Mails, Auto Detach, Compress All, Rename All, Save All... Quick Report, Count Selected Mails...
  • Powerful Junk Emails by custom; Remove Duplicate Mails and Contacts... Enable you to do smarter, faster and better in Outlook.
shot kutools outlook kutools tab 1180x121
shot kutools outlook kutools plus tab 1180x121
 
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations