跳到主要内容

set_sheet

  • 指定要进行处理的表格,打开excel时默认sheet编号为0

声明

enum ExcelErrorCode set_sheet(int index)

参数

参数名描述
indexsheet编号

返回值

返回ExcelErrorCode

使用方式

// 设置当前表为索引为1的表,即Sheet2
excel_obj.set_sheet(1);

返回文档