ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Insert column headers in Excel using C# (https://www.excelbanter.com/excel-programming/435062-insert-column-headers-excel-using-c.html)

Marilyn

Insert column headers in Excel using C#
 
How can I insert column headers in Excel documents using C# with
Microsoft.Office.Interop.Excel namespace?

Row 1:
Col 1 = YEAR
Col 2 = MONTH
Col 3 = DAY
Col 4 = TMIN
Col5 = CODE

I have hundreds of these Excel documents so I need to automate this. I
already have a routine to loop through the file directories. Just don't know
how to insert the column headers.

Thanks,

Marilyn


All times are GMT +1. The time now is 08:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com