GemBox.Spreadsheet is a .NET component that enables you to read, write, edit, convert, and print spreadsheet files from your .NET applications using one simple API.

Forms and Macros

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

Screenshot
Forms and Macros Screenshot

See the full code below, use Run Example to execute.

Upload your file(Drag files here)

Download a sample file

using System;
using GemBox.Spreadsheet;

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

        ExcelFile ef = ExcelFile.Load("FormsAndMacros.xlsm");

        ef.Save("Forms and Macros.xlsm");
    }
}
Imports GemBox.Spreadsheet

Module Samples

    Sub Main()

        ' If using Professional version, put your serial key below.
        SpreadsheetInfo.SetLicense("FREE-LIMITED-KEY")

        Dim ef As ExcelFile = ExcelFile.Load("FormsAndMacros.xlsm")

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

    End Sub

End Module

Check next sample.