EXCEL » Api

createworkbook

Description

엑셀 데이터를 생성하기 위한 워크북을 생성하는 API이다.

Return Value

Type Description
BOOL 정상 처리 여부

Remark

기존 엑셀 데이터는 모두 삭제된다.

Example

function btn_on_mousedown(objInst) { // 새로운 워크북 생성 obj_excel.createworkbook(); // 새로운 시트 생성 obj_excel.addsheet("Sheet Name"); // 작업 대상 시트 인덱스 설정 obj_excel.setselectsheet(0); // 현재 작업 대상 시트에 값 설정 (0행 0열) obj_excel.setcellvalue(0, 0, "new2"); // 현재 작업 대상 시트에 값 설정 (0행 1열) obj_excel.setcellvaluebyaddr("B1", "new"); // 파일 저장 obj_excel.savefile("Download.xlsx"); }

See Also

addsheet

Viewer Ver.

24.3.29.1

Update Date

20240402