web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Export Report to Excel with multiplesheets

(0) ShareShare
ReportReport
Posted on by 50
Hi, i struggle with Export Report to Excel with multiplesheets.
I have 2 checkbox on report, Customer, and Vendor. Export depends on the what checkbox is typed.
Any ideas?
  • Suggested answer
    Amit Baru Profile Picture
    3,043 on at

    Hi,

    In Excel Buffer Table there is a function for creating new sheet in one Excel document.

    procedure SelectOrAddSheet(NewSheetName: Text)
        begin
            if NewSheetName = '' then
                exit;
            if IsNull(XlWrkBkWriter) then
                Error(Text037);
            if XlWrkBkWriter.HasWorksheet(NewSheetName) then
                XlWrkShtWriter := XlWrkBkWriter.GetWorksheetByName(NewSheetName)
            else
                XlWrkShtWriter := XlWrkBkWriter.AddWorksheet(NewSheetName);
        end;
    Regards
    Amit Sharma
  • Tony00001 Profile Picture
    50 on at

    This one i should use in PreReport?

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    No the Excel buffer is easier to use from a codeunit than from a report.

    Or if you use it in a report it should be a processing only report.

    But you could also use the Excel report layout to do it.

    docs.microsoft.com/.../users-use-excel-design-layouts-reports

    www.youtube.com/watch

  • Suggested answer
    Amit Baru Profile Picture
    3,043 on at

    hi,

    Creation of export to Excel Report.

    https://erpconsultors.com/export-to-excel-report-in-business-central/

    Regards

    Amit Sharma

    www.erpconsultors.con

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 633 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 419 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 236 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans