https://trumpexcel.com/vba-filesystemobject/ When you create a reference to the Scripting Runtime Library, you allow Excel VBA the access to all the properties and methods of files and folder. Once this is done, you can refer to the files/folders/drives object from within the Excel VBA (just like you can refer the cells, worksheets or workbooks). Below are the steps to create a reference to the Microsoft Scripting Runtime Library: 1 In the VB Editor, click on Tools. 2 Click on References. 3 In the References dialog box that opens, scroll through the available references and check the ‘Microsoft Scripting Runtime’ option. 4 OK # This in order to enable library for Outlook DPR/MOM script