Add a library reference to VBA project in workbook

Add a library reference to VBA project in Microsoft Excel

In Microsoft Excel, you can add a library reference to the VBA project by clicking the Tools > References… manually.

Add a library reference to the VBA project in a workbook using Aspose.Cells

The following sample code adds or registers two library references to the VBA project of the workbook using VbaProject.References.AddRegisteredReference() method.