Add a library reference to the VBA project in workbook with Golang via C++
Contents
[
Hide
]
Sometimes, you need to add or register a library reference to the VBA project through code. You can do it using Aspose.Cells VbaProject.References.AddRegisteredReference() method.
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.