Home » excel » Excel VSTO add-in : Can I disable Excel Headings in code?

Excel VSTO add-in : Can I disable Excel Headings in code?

Posted by: admin April 23, 2020 Leave a comment

Questions:

I’m building a Visual Studio workbook add-in component for Excel (2007+). I have a few worksheets in my VSTO-modified workbook that I want to disable the Headings in code. (what you can do in the Excel ribbon > View > Headings ‘checkbox’). Does anyone know how to do this?

How to&Answers:

VB.Net

Me.Application.ActiveWindow.DisplayHeadings = False

C #

this.Application.ActiveWindow.DisplayHeadings = false;