Excel - C# - Format as table

Nov 4, 2015 at 8:52 PM
I am using NPOI to generate a either a .xls or .xlsx depending on user preference and I need to format the data in the spreadsheets as a table, the same thing as highlighting the range in excel and selecting Format as Table in the menu.

I can find several examples of how to do it with POI and Java but sadly I cant manage to port them into my code.

Any ideas are appreciated