Wednesday, June 6, 2012

How to align text a merged cell in excel using C#

Code:
1:  chartRange.Merge(Type.Missing);  
2:  chartRange.HorizontalAlignment = Microsoft.Office.Interop.Excel.XlHAlign.xlHAlignCenter;

Source: sanket's blog

6 comments: