How do I apply a border around merged cells? (I don’t mind if it is in VB, c#…)
My code only apply a border around the first cell.
My code:
Range range = sheet.Cells[r,c]; // Select first cell in a group.
range.Borders = XlLineStyle.xlContinuous;
Thank you!
This works as well. so, you can choose merged cells range again and apply border on it.