2

I tried making an excel file with borders on its cells. I tried the following code:

xlWorksheet.Range[xlWorksheet.Cells[13, 1], xlWorksheet.Cells[13,14]]
    .BorderAround(Excel.XlLineStyle.xlContinuous,
    Excel.XlBorderWeight.xlMedium);

but it is giving me the following output:

enter image description here

How will I add all borders of cells within specified range including the middle borders?

ThEpRoGrAmMiNgNoOb
  • 1,256
  • 3
  • 23
  • 46

0 Answers0