Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to read Excel comment and import into NAV table?

(0) ShareShare
ReportReport
Posted on by

Dear Experts,

Do anyone have idea on how to get Excel comment from Excel sheets so that I can import those text into NAV tables?  Is it possible to do through Microsoft.Dynamics.Nav.OpenXml?  Or, should I use Microsoft.Office.Interop.Excel.Worksheet.'Microsoft.Office.Interop.Excel?

Thanks for any comment!

Louisa

*This post is locked for comments

  • mmv Profile Picture
    mmv 11,467 on at
    RE: How to read Excel comment and import into NAV table?

    Hi Louisa,

    Could you verify the solution?

    Best Regards,

    MMV

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,614 on at
    RE: How to read Excel comment and import into NAV table?

    To read comments you may have to use Microsoft.Office.Interop.Excel and convert the below code into C/AL

    var application = new Excel.Application();
                var workbook = application.Workbooks.Open(@"C:\test with comments.xlsx");
                Excel.Worksheet worksheet = workbook.Sheets[1];
    
                Excel.Range range = worksheet.Cells[1, 1];
    
                //Here is your comment as a string
                var myComment = range.Comment.Text();

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,155 Super User 2025 Season 1 on at
    RE: How to read Excel comment and import into NAV table?

    Please check Report 81 - import budget from Excel and Excel Buffer table (370), they know how to read the data from excel  

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans