Add a library reference to the VBA project in workbook with Golang via C++

Add a library reference to a VBA project in Microsoft Excel

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

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 in the workbook using the VbaProject.References.AddRegisteredReference() method.