Forms and Macros

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

Screenshot of Excel form controls and macros preserved with GemBox.Spreadsheet
Excel form controls and macros preserved with GemBox.Spreadsheet
Upload your file (Drag file here)
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

Check next example or download examples from GitHub.