msoffice.js

This commit is contained in:
Namhyeon Go 2023-11-27 17:04:01 +09:00
parent 52888517ee
commit 848bded217
2 changed files with 6 additions and 6 deletions

View File

@ -159,11 +159,11 @@ function Excel() {
}
};
this.getValueByCell = function(row, col) {
this.getValueByPosition = function(row, col) {
return this.CurrentWorksheet.Cells(row, col).Value;
};
this.setValueByCell = function(row, col, value) {
this.setValueByPosition = function(row, col, value) {
return this.CurrentWorksheet.Cells(row, col).Value = value;
};
};
@ -185,7 +185,7 @@ exports.Excel = Excel;
exports.PowerPoint = PowerPoint;
exports.Word = Word;
exports.VERSIONINFO = "Microsoft Office interface (msoffice.js) version 0.1.1";
exports.VERSIONINFO = "Microsoft Office interface (msoffice.js) version 0.1.2";
exports.AUTHOR = "abuse@catswords.net";
exports.global = global;
exports.require = global.require;

View File

@ -4,9 +4,9 @@ function main(args) {
var excel = new Office.Excel();
excel.open();
excel.setValueByCell(1, 1, "hello world");
excel.getValueByPosition(1, 1, "hello world");
excel.close();
}