Forms and Macros
GemBox.Spreadsheet preserves Form Controls and Macros when reading XLSX file format.

using GemBox.Spreadsheet;
class Program
{
static void Main()
{
// If using Professional version, put your serial key below.
SpreadsheetInfo.SetLicense("FREE-LIMITED-KEY");
var workbook = ExcelFile.Load("%InputFileName%");
workbook.Save("Forms and Macros.xlsm");
}
}
Imports GemBox.Spreadsheet
Module Program
Sub Main()
' If using Professional version, put your serial key below.
SpreadsheetInfo.SetLicense("FREE-LIMITED-KEY")
Dim workbook = ExcelFile.Load("%InputFileName%")
workbook.Save("Forms and Macros.xlsm")
End Sub
End Module
Want more?
Like it?
Published: February 10, 2020 | Modified: March 20, 2020 | Author: Mario Zorica