我正在尝试编写一个函数,该函数使用 Excelize 编写一个字符串数组以在 Go 中表现出色。 我的问题:如何使用行号和列号来处理单元格,而不是“axis”参数的“A1”语法类型?
// Writes the header of the file:
xlfile.SetCellValue("Sheet1", "A1", "1")
// Instead of "A1", I would like to use row number and col number as parameters
最佳答案
CoordinatesToCellName将 [X, Y] 坐标转换为字母数字单元格名称或返回错误。
关于excel - Golang Excelize : how to set cell value with row nmber and column number,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55743188/