I am working on a project that creates excel files.
I am having trouble placing a border on multiple cells to organize the excel file.
Let\'s say I want a b
I did this without impacting the performance. I am taking a simple excel to format :
Before
I managed to store the range as A1:C4 in a variable dynamically in exRange and used the below code to give border
((Range)excelSheet.get_Range(exRange)).Cells.Borders.LineStyle = XlLineStyle.xlContinuous;
After