问题:我们如何将ws.Cells["AA"].Value = "MyColumn";
列名添加到 Excel 工作表中
以下工作直到列Z1
。但是我有更多的列Z
。所以,如果我添加ws.Cells["AA"].Value = "MyColumn";
,以下不起作用。:
ws.Cells["A1"].Value = "Number";
ws.Cells["B1"].Value = "First Name";
ws.Cells["C1"].Value = "Last Name";
ws.Cells["D1"].Value = "Country";
....
....
ws.Cells["Z1"].Value = "Country";
ws.Cells["AA"].Value = "MyColumn";