This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub DeleteAllAttachments() | |
| Dim olkMsg As Object, intIdx As Integer, strBuffer As String | |
| For Each olkMsg In Application.ActiveExplorer.Selection | |
| For intIdx = olkMsg.Attachments.Count To 1 Step -1 | |
| If Not IsHiddenAttachment(olkMsg.Attachments.Item(intIdx)) Then | |
| strBuffer = strBuffer & olkMsg.Attachments.Item(intIdx).FileName & vbCrLf | |
| olkMsg.Attachments.Item(intIdx).Delete | |
| End If | |
| Next | |
| Select Case olkMsg.BodyFormat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub SaveAllAttachments() | |
| '--> Define some constants | |
| Const msoFileDialogFolderPicker = 4 | |
| '--> Define some variables | |
| Dim olkMsg As Object, _ | |
| olkPos As Outlook.PostItem, _ | |
| intIdx As Integer, _ | |
| excApp As Object, _ | |
| objFSO As Object, _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C:\Windows\System32\runas.exe /netonly /user:username@domainname "mmc %SystemRoot%\system32\dsa.msc /domain=domainname" |
NewerOlder