Skip to content

Instantly share code, notes, and snippets.

View id82's full-sized avatar

Ivan id82

  • United Kingdom
View GitHub Profile
@id82
id82 / SaveAttachmentsToDisk.vba
Created November 1, 2018 13:23
Outlook code to save attachments from selected messages to folder
Option Explicit
Private Const SW_RESTORE = 9
#If VBA7 Then
Private Declare PtrSafe Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Declare PtrSafe Function IsIconic Lib "user32.dll" (ByVal hwnd As Long) As Long
#Else
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function IsIconic Lib "user32.dll" (ByVal hwnd As Long) As Long
#End If