Skip to content

Instantly share code, notes, and snippets.

@xcriptus
Created December 9, 2012 22:15
Show Gist options
  • Save xcriptus/4247255 to your computer and use it in GitHub Desktop.
Save xcriptus/4247255 to your computer and use it in GitHub Desktop.
StarUML - Excel
// See an example in the StarUML translator for excel
// (StarUML\modules\staruml-generator\translators\excel\ExcelTranslator.js)
var excel = new ActiveXObject("Excel.Application");
excel.visible = true ;
excelWorkbook = excel.Workbooks.Open(excelfile);
// xlNormal = -4143 (&HFFFFEFD1)
// ...
excelWorkbook.SaveAs(outputFilename, -4143, "", "", false, false);
excelWorkbook.Close();
staruml.log( excel.Worksheets("Sheet1").Range("A1").Value ) ;
for(var i = 1; i <= excelWorkbook.Sheets.Count; i++) {
var excelSheet = excelWorkbook.Sheets(i);
excelSheet.Select();
...
}
== Excel VBA ==
=== Information Source ===
* http://www.excel-vba.com/excel-vba-contents.htm
=== Important Classes
==== Worksheet ====
==== Range ====
* Column, number of the first column
* Row, number of the first row
* Columns.Count
* Rows.Count
* Item, an cell in the range in relative coordinate
* Offset
==== Name ====
* Name
* RefersToRange
* RefersToR1C1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment