Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Add a Total Row to an Excel SpreadsheetContent of Add a Total Row to an Excel Spreadsheet.jsMD5 Hash: 4A59ACD8ACDDE89348E8E0AAA8F32F05 |
||
arrvalues = new Array(1,5,7,9,11,13,15,17);
var objexcel = new ActiveXObject("excel.application"); objexcel.visible = true; objexcel.workbooks.add; i = 1; var myJS_Enumerator_1 = new Enumerator(arrvalues); for (;!myJS_Enumerator_1.atEnd();myJS_Enumerator_1.moveNext()) { intvalue = myJS_Enumerator_1.item(); objexcel.cells(i, 1).value = intvalue; i = i + 1; } isum = i-1; objexcel.cells(i, 1).formula = "=SUM(A1:A" + isum + ")"; | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |