Forms and Macros

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

Forms and Macros Screenshot
Upload your file (Drag file here)
using GemBox.Spreadsheet;

class Program
{
    static void Main(string[] args)
    {
        // If using Professional version, put your serial key below.
        SpreadsheetInfo.SetLicense("FREE-LIMITED-KEY");

        ExcelFile ef = ExcelFile.Load("%InputFileName%");

        ef.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 ef As ExcelFile = ExcelFile.Load("%InputFileName%")

        ef.Save("Forms and Macros.xlsm")

    End Sub

End Module

Check next example or download examples from GitHub.