This project has moved and is read-only. For the latest updates, please go here.

Cell comments

Feb 5, 2011 at 7:55 PM



How to access cell comments?! create/update or delete them?!





Feb 6, 2011 at 3:12 AM

Cell comments are not implemented yet.

Aug 11, 2011 at 11:34 AM


Have you had a chance to implement working with cell comments since that post in February? If not, do you have any plans to get to it any time soon? Perhaps I could help with some coding, if you can provide necessary assistance with understanding your framework.


Aug 12, 2011 at 9:22 PM

I have even less time right now so all I can do is fix bugs and add small things to the library. Someone is helping me implement pivot tables though. I provide him with the interface I want and he's making the implementation.

If you want we could do the same for comments (I provide you with the interface and you implement it). Let me know if you're interested.


Aug 12, 2011 at 10:33 PM
Edited Aug 25, 2011 at 12:10 PM
I certainly understand you not having enough time for maintaining such a comprehensive library. Glad you have time at all :)
And why not. On the surface it sounds like comments should be quite straightforward to implement. Let's give it a shot with your interface approach.
Aug 12, 2011 at 11:08 PM

Cool. I'll prepare the interface for you and shoot you a PM...

Thanks for the help.

Aug 25, 2011 at 12:12 PM


Our small development team put together some code to provide basic ability to add cell comments. Let me know what would be the best way to pass it to you and have you integrate it into your next build.

Aug 25, 2011 at 12:12 PM
Edited Aug 25, 2011 at 12:12 PM

You have my email address, I believe. Feel free to contact me there.

Nov 24, 2011 at 9:53 AM


I'm desperately looking for a way to create excel sheets with cell comments..

Is this possible today?


ClosedXML 0.60.0
Mon Nov 7 2011 at 9:00 AM
Nov 24, 2011 at 11:03 AM

I'll check in a version that will let you add comments later today...

Nov 25, 2011 at 8:50 AM
Edited Nov 25, 2011 at 8:50 AM

That would be so perfect!

I've been struggling with this for a while now, using "NPOI".. But a sheet full of comments: they (comments) become all visible.. Looks horrible... And using a template with macro to hide them is a last resort...

Nov 25, 2011 at 11:32 PM

Okay, download the latest check-in. It will let you create comments. Keep in mind that it's halfway done so there will probably be things that don't work. If you need anything let me know and I'll implement it as needed. Right now you can add the comments like the following:

            var wb = new XLWorkbook();
            var ws = wb.Worksheets.Add("Sheet1");
            var c = ws.FirstCell().Comment;
            c.AddText("Author's Comments:").SetBold();
            c.AddText("None that matters.");
            c.Visible = false;
Note: Here I only use .SetBold() but you can set any font property accordingly.

Jan 5, 2012 at 5:24 PM
Edited Jan 5, 2012 at 5:29 PM

Not work for me... something wrong???



After download last version 0.61.0. Its works!!!!