Advanced-excel-functions-advanced-excel-information-info-function

提供:Dev Guides
移動先:案内検索

高度なExcel情報-INFO関数

説明

INFO関数は、現在の動作環境に関する情報を返します。

構文

INFO (type_text)

引数

Argument Description Required/Optional
Type_text

Text that specifies the type of Information that is to be returned.

Type_textの値と対応する戻り情報を以下の表に示します。

Required

=

Type_text Information Returned
"directory" Path of the current directory or folder.
"numfile" Number of active worksheets in the open Workbooks.
"origin"

Returns the absolute cell reference of the top and leftmost cell visible in the window, based on the current scrolling position, as text prepended with "$A:". This value is intended for Lotus 1-2-3 release 3.x compatibility.

返される実際の値は、現在の参照スタイル設定によって異なります。

たとえば、D9では、戻り値は-

A1参照スタイルの場合:「$ A:$ D $ 9」。

R1C1参照スタイルの場合:「$ A:R9C4」。

"osversion" Current operating system version, as text.
"recalc" Current recalculation mode; returns "Automatic" or "Manual".
"release" Version of Microsoft Excel, as text.
"system" Name of the operating environment: E.g. Windows = "pcdos"

ノート

  • type_text値が「memavail」、「memused」、または「totmem」の場合、INFOは#N/Aエラー値を返します。
  • これらのtype_text値は、以前のバージョンのExcelでメモリ情報を返したため、サポートされなくなりました。
  • type_text値がその他の無効な値である場合、INFOは#VALUE!を返します。 エラー値。

適用範囲

Excel 2007、Excel 2010、Excel 2013、Excel 2016

情報関数