Excel Function

Cellの情報を取得

概要 Cells(3,3)のセル情報を1列目のセルに1〜100番まで出力する。構文 [<ExcelFunctionAttribute("セル情報")>] let GetCellInfo () = let cell = new ExcelReference(0,2) let gci i = XlCall.Excel(XlCall.xlfGetCell, i, cell) let sv row value = let cell = new ExcelReference(row, 0) cel</excelfunctionattribute("セル情報")>…

Excel内部関数一覧

index 関数名 001 xlfCount 002 xlfIsna 003 xlfIserror 004 xlfSum 005 xlfAverage 006 xlfMin 007 xlfMax 008 xlfRow 009 xlfColumn 010 xlfNa 011 xlfNpv 012 xlfStdev 013 xlfDollar 014 xlfFixed 015 xlfSin 016 xlfCos 017 xlfTan 018 xlfAtan 019 xlf…

Windowsの取得

概要 開いているWindow一覧を取得して出力する。構文 open ExcelDna.Logging [<ExcelFunctionAttribute("Excelウィンドウ一覧")>] let Windows () = let ret = XlCall.Excel(XlCall.xlfWindows, Array.empty) let arr = ret :?> obj [,] let arr = [ for i in 0..(arr.GetLength(1)-1) -> arr.[0,i] :?> stri</excelfunctionattribute("excelウィンドウ一覧")>…