For .NET developers (C#, VB.NET), the recommended way is to install the .

"Microsoft Excel 16.0 Object Library" (for Office 365/2016/2019) or "Microsoft Excel 15.0 Object Library" (for Office 2013)

Instead of setting a reference to the Excel library, use CreateObject :