0

问题:我们如何将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";
4

1 回答 1

0

你错过了行号?

ws.Cells["AA1"].Value = "MyColumn";

于 2017-06-09T00:04:08.237 回答