A sub of code is a collection of objects and variables. For the code to successfully run a library of references needs to be set. If you have not already done so you will want to Activate the Developer Tab and Update Macro Security before updating the available resources to Leverage & Lean macros.
Microsoft Excel 16.0 Object Library
OLE Automation
Microsoft Office 16.0 Object Library
Microsoft Forms 2.0 Object Library
Microsoft Outlook 16.0 Object Library
Microsoft Word 16.0 Object Library
Microsoft XML, v6.O
Microsoft OneNote 15.0 Extended Object Library
Microsoft OneNote 15.0 Object Library
Microsoft Internet Controls
Microsoft Scripting Runtime
Microsoft WinHTTP Services, version 5.1
Microsoft HTML Object Library
Microsoft Outlook 16.0 Object Library
OLE Automation
Microsoft Office 16.0 Object Library
Microsoft Forms 2.0 Object Library
Microsoft VBScript Regular Expressions 5.5
Microsoft OneNote 15.0 Extended Object Library
Microsoft OneNote 15.0 Object Library
Microsoft XML v6.O
Microsoft Scripting Runtime
Microsoft Excel 16.0 Object Library
Microsoft Word 16.0 Object Library
Microsoft Word 16.0 Object Library
OLE Automation
Normal
Microsoft Office 16.0 Object Library
See How
Watch this video to see how to do this on your computer.Read How
Follow this step by step guide to do this on your computer.Current References
Excel:
Visual Basic For ApplicationsMicrosoft Excel 16.0 Object Library
OLE Automation
Microsoft Office 16.0 Object Library
Microsoft Forms 2.0 Object Library
Microsoft Outlook 16.0 Object Library
Microsoft Word 16.0 Object Library
Microsoft XML, v6.O
Microsoft OneNote 15.0 Extended Object Library
Microsoft OneNote 15.0 Object Library
Microsoft Internet Controls
Microsoft Scripting Runtime
Microsoft WinHTTP Services, version 5.1
Microsoft HTML Object Library
Outlook:
Visual Basic For ApplicationsMicrosoft Outlook 16.0 Object Library
OLE Automation
Microsoft Office 16.0 Object Library
Microsoft Forms 2.0 Object Library
Microsoft VBScript Regular Expressions 5.5
Microsoft OneNote 15.0 Extended Object Library
Microsoft OneNote 15.0 Object Library
Microsoft XML v6.O
Microsoft Scripting Runtime
Microsoft Excel 16.0 Object Library
Microsoft Word 16.0 Object Library
Word:
Visual Basic For ApplicationsMicrosoft Word 16.0 Object Library
OLE Automation
Normal
Microsoft Office 16.0 Object Library