Команды functions

[ ] indicates optional parameters

АКТИВИЗИРОВАТЬ([заголовок_окна], [номер_подокна])
АКТИВНАЯ.ЯЧЕЙКА()
ВВОД(текст_сообщения, [ном_типа], [назван_текст], [по_умолчанию], [x_поз], [y_поз], [ссылка_на_справку])
ВСТАВИТЬ([ссылка_куда_вставлять])
ВЫДЕЛЕНИЕ()
ВЫДЕЛИТЬ([выделенное], [активная_ячейка])
ВЫДЕЛИТЬ.ДО.КОНЦА(direction_num)
ВЫДЕЛИТЬ.ПОСЛЕДНЮЮ.ЯЧЕЙКУ()
ВЫЗЫВАЮЩИЙ()
ВЫРЕЗАТЬ([из_ссылки], [ссылка_куда_вставлять])
ВЫСОТА.СТРОКИ([высота_числ], [ссылка], [стандартная_высота], [тип_число])
ВЫЧИСЛИТЬ(текст_формулы)
ВЫЧИСЛИТЬ.ДОКУМЕНТ()
ВЫЧИСЛИТЬ.СЕЙЧАС()
ЗАПОЛНИТЬ.ВВЕРХ()
ЗАПОЛНИТЬ.ВЛЕВО()
ЗАПОЛНИТЬ.ВНИЗ()
ЗАПОЛНИТЬ.ВПРАВО()
ЗАЩИТИТЬ.ДОКУМЕНТ([содержимое], [окна], [пароль], [объекты], [сценарии])
КОПИРОВАТЬ([из_ссылки], [ссылка_куда_вставлять])
ПО.ЛИСТУ([текст_листа], [макрос_текст], [флаг_активации])
ПОДБОР.ПАРАМЕТРА(целевая_ячейка, целевое_значение, переменная_ячейка)
ПОЛУЧИТЬ.ОБЪЕКТ(ном_типа, [идр_объекта], [нач_ном], [ном_счет], [индекс_элемента])
ПОМЕСТИТЬ([сдвиг_ном])
ПОМЕСТИТЬ.В.РАБОЧУЮКНИГУ([ном_типа])
ПРАВКА.УДАЛИТЬ([сдвиг_ном])
ПРЕДУПРЕЖДЕНИЕ(текст_сообщения, [ном_типа], [ссылка_на_справку])
ПРОГРЕССИЯ([строки_или_столбцы], [номер_типа], [дата_номера], [значение_шага], [кон_знач], [направление])
РАБОЧАЯ.КНИГА.АКТИВИЗИРОВАТЬ(текст_листа)
РАБОЧАЯ.КНИГА.ИМЯ(старый_текст, новый_текст)
РАБОЧАЯ.КНИГА.УДАЛИТЬ([текст_листа])
СВОЙСТВА.ШРИФТА([шрифт], [стиль_шрифта], [размер], [перечеркнуть], [верхний_индекс], [нижний_индекс], [контур], [затенение], [подчеркнутый], [цвет], [обычный], [фон], [нач_символ], [число_символов])
СИГНАЛ([тон_число])
СОРТИРОВКА([ориентация], [ключ1], [порядок1], [ключ2], [порядок2], [ключ3], [порядок3], [верхний_колонтитул], [настройка], [регистр])
СПЕЦИАЛЬНАЯ.ВСТАВКА([ном_вставки], [номер_операции], [пропуск_пустых], [перестановка])
ССЫЛЗНАЧ(ссылка)
ССЫЛТЕКСТ(ссылка, [а1])
СТЕРЕТЬ([ном_типа])
ТЕКСТССЫЛ(текст, [а1])
ФОРМА.ДАННЫХ()
ФОРМАТ.ЧИСЛО(строка_форматирования)
ФОРМУЛА(текст_формулы, [ссылка])
ФОРМУЛА.ПЕРЕЙТИ([ссылка], [угол])
ШИРИНА.СТОЛБЦА([ширина_число], [ссылка], [стандартный], [тип_число], [стандарт_число])


Команды functions

АКТИВИЗИРОВАТЬ([заголовок_окна], [номер_подокна])

Specifies the workbook, sheet and/or pane that is to be active.

заголовок_окнаThe workbook and/or sheet name. If this parameter is omitted then the active window is not changed.
номер_подокнаFor a split window, specifies which pane is to be active. The possible values are:
1Upper or upper left.
2Upper right.
3Lower or lower left.
4Lower right.
If this parameter is omitted it then the active pane is not changed.


АКТИВНАЯ.ЯЧЕЙКА()

Returns a reference which represents the current position of the cursor on the active worksheet.



ВВОД(текст_сообщения, [ном_типа], [назван_текст], [по_умолчанию], [x_поз], [y_поз], [ссылка_на_справку])

Displays a message in a dialog box with an area for user input and ОК and Отмена buttons. If the ОК button is pressed then the text entered by the user is returned. If the Отмена button is pressed then this function returns the value ЛОЖЬ.

текст_сообщенияThe message that you want displayed in the dialog box.
ном_типаThe acceptable data type(s) for the data that you want returned. It can be any combination of the following (to specify more than one value, add the numbers together):
0Формула
1Число
2Текст
4Логические
8Ссылка
16Ошибка
64массив
If this parameter is omitted it defaults to 2.
назван_текстThe title to be used for the dialog box. If this parameter is omitted it defaults to "Ввод".
по_умолчаниюThe text that you want to be initially displayed in the input area of the dialog box. If this parameter is omitted the input area will be blank.
x_позThe initial x position on the screen where the dialog box will be displayed. If this parameter is omitted it defaults to the center of the screen. (Not currently supported).
y_позThe initial y position on the screen where the dialog box will be displayed. If this parameter is omitted it defaults to the center of the screen. (Not currently supported).
ссылка_на_справкуThe name of help topic that is to be displayed if the user presses the Help button in the dialog box. If this parameter is omitted then no Help button is displayed. (Not currently supported).


ВСТАВИТЬ([ссылка_куда_вставлять])

Simulates the Правка Вставить menu option.

ссылка_куда_вставлятьThe cells where the copied information is to be pasted. If this parameter is omitted it defaults to the current selection on the active worksheet.


ВЫДЕЛЕНИЕ()

Returns a reference which represents the current selection on the active worksheet.



ВЫДЕЛИТЬ([выделенное], [активная_ячейка])

Sets the selection and cursor cell on the active worksheet.

выделенноеThe cells that are to be the selection. If this parameter is omitted the current selection is not changed.
активная_ячейкаThe cell that is to be the cursor cell. If this parameter is omitted it defaults to the top left cell in the selection.


ВЫДЕЛИТЬ.ДО.КОНЦА(номер_направления)

Simulates the Ctrl+arrow key combination.

номер_направленияThe direction in which to move the cursor. The possible values are:
1влево
2вправо
3вверх
4вниз


ВЫДЕЛИТЬ.ПОСЛЕДНЮЮ.ЯЧЕЙКУ()

Simulates the Ctrl+End key combination.



ВЫЗЫВАЮЩИЙ()

Returns information about the caller of the macro.

Macro called from:Function returns:
user-defined functionreference of cell containing function call
user-defined function in array formulareference of array formula range
attached to control or drawing objectobject identifier
manually (control key combination)error value #ССЫЛКА!


ВЫРЕЗАТЬ([из_ссылки], [ссылка_куда_вставлять])

Simulates the Правка Вырезать menu option.

из_ссылкиThe cells that are to be cut to the clipboard. If this parameter is omitted it defaults to the current selection on the active worksheet.
ссылка_куда_вставлятьThe cells where the cut information is to be pasted. If this parameter is omitted then the cells are not pasted.


[высота_числ], [ссылка], [стандартная_высота], [тип_число]

Simulates the Формат Строка menu options.

высота_числThe new height of the rows. The height is measured in points. This parameter is ignored if стандартная_высота is ИСТИНА or тип_число is specified. If this parameter is omitted the height of the specified rows is not changed.
ссылкаThe rows whose height is to be changed. If this parameter is omitted it defaults to the current selection on the active worksheet.
стандартная_высотаSpecifies whether the rows are to be set to the standard row height. The possible values are:
ИСТИНАThe rows are set to the standard height.
ЛОЖЬThe rows are not set to the standard height.
If this parameter is omitted it defaults to ЛОЖЬ.
тип_числоSpecifies whether the rows are to be hidden, unhidden or automatically sized. This parameter is ignored if стандартная_высота is TRUE. The possible values are:
1The rows are hidden.
2The rows are unhidden.
3The rows are set to the height of the highest displayed value.
If this parameter is omitted the rows will not be hidden, unhidden or auto-sized.


ВЫЧИСЛИТЬ(текст_формулы)

Returns the result of evaluating a formula.

текст_формулыThe formula to be evaluated.


ВЫЧИСЛИТЬ.ДОКУМЕНТ()

Causes the current worksheet to be recalculated.



ВЫЧИСЛИТЬ.СЕЙЧАС()

Causes all worksheets to be recalculated.



ЗАПОЛНИТЬ.ВВЕРХ()

Simulates the Правка Заполнение Вверх menu option.



ЗАПОЛНИТЬ.ВЛЕВО()

Simulates the Правка Заполнение Влево menu option.



ЗАПОЛНИТЬ.ВНИЗ()

Simulates the Правка Заполнение Вниз menu option.



ЗАПОЛНИТЬ.ВПРАВО()

Simulates the Правка Заполнение Вправо menu option.



ЗАЩИТИТЬ.ДОКУМЕНТ([содержимое], [окна], [пароль], [объекты], [сценарии])

Simulates the Формат Лист Защитить menu option.

содержимоеWhether to protect the locked cell contents. The possible values are:
ИСТИНАThe locked cell contents are protected
ЛОЖЬThe locked cell contents are unprotected
If this parameter is omitted it defaults to ИСТИНА.
окнаWhether to protect windows from being moved or sized (not currently implemented). The possible values are:
ИСТИНАThe windows are protected
ЛОЖЬThe windows are unprotected
If this parameter is omitted it defaults to ЛОЖЬ.
парольAn optional case-sensitive password to protect or unprotect the document.
объектыWhether to protect the locked objects (not currently implemented). The possible values are:
ИСТИНАThe locked objects are protected
ЛОЖЬThe locked objects are unprotected
If this parameter is omitted it defaults to ИСТИНА.
сценарииWhether to protect the scenarios (not currently implemented). The possible values are:
ИСТИНАThe scenarios are protected
ЛОЖЬThe scenarios are unprotected
If this parameter is omitted it defaults to ИСТИНА.


КОПИРОВАТЬ([из_ссылки], [ссылка_куда_вставлять])

Simulates the Правка Копировать menu option.

из_ссылкиThe cells that are to be copied to the clipboard. If this parameter is omitted it defaults to the current selection on the active worksheet.
ссылка_куда_вставлятьThe cells where the copied information is to be pasted. If this parameter is omitted then the cells are not pasted.


ПО.ЛИСТУ([текст_листа], [макрос_текст], [флаг_активации])

Specifies a macro to be run when a sheet is activated or deactivated.

текст_листаThe name of the sheet for which the macro is to be run. If this parameter is omitted then the macro will be run for all sheets.
макрос_текстThe defined name that refers to the macro that is to be run. If this parameter is omitted then no macro will be run.
флаг_активацииSpecifies whether the macro is to be run when the sheet is activated or deactivated. The possible values are:
ИСТИНАThe macro will be run when the sheet is activated.
ЛОЖЬThe macro will be run when the sheet is deactivated.
If this parameter is omitted it defaults to ИСТИНА.


ПОДБОР.ПАРАМЕТРА(целевая_ячейка, целевое_значение, переменная_ячейка)

Simulates the Формат Данные Подбор параметра menu option.

целевая_ячейкаThe cell that is required to be a certain value. It must be a single cell containing a formula that returns a numeric result.
целевое_значениеThe value that the target cell needs to reach.
переменная_ячейкаThe cell whose value can be changed. It must be a single cell that either contains a number or is empty.


ПОЛУЧИТЬ.ОБЪЕКТ(ном_типа, [идр_объекта], [нач_ном], [ном_счет], [индекс_элемента])

Returns information about the specified object.

ном_типаThe type of information to return. The possible values are:
1object type as number:
1 линии
2 прямоугольника
3 овала
6 надписи
7 кнопки
11 флажка
12 переключателя
14 подписи
16 счетчика
17 полосы прокрутки
18 списка
19 группы
20 раскрывающегося списка
2locked
3z-order
4top-left cell as R1C1 reference
5x-offset of top-left corner in points
6y-offset of top-left corner in points
7bottom-right cell as R1C1 reference
8x-offset of bottom-right corner in points
9y-offset of bottom-right corner in points
10reference of the macro as text
11object positioning as number:
1 перемещать и изменять объект вместе с ячейками
2 перемещать, но не изменять размеры
3 не перемещять и не изменять размеры
12object text from start_num for count_num characters
идр_объектаThe object identifier. If this parameter is omitted it defaults to the currently selected object on the active worksheet.
нач_номThe text substring start position for type_num 12. If this parameter is omitted it defaults to 1.
ном_счетThe text substring length for type_num 12. If this parameter is omitted it defaults to 255.
индекс_элементаThis parameter is not currently used.


ПОМЕСТИТЬ([сдвиг_ном])

Simulates the Вставка Ячейки menu option.

сдвиг_номThe way in which the cell insertion is to be processed. The possible values are:
1со сдвигом вправо
2со сдвигом вниз
3строку
4столбец
If this parameter is omitted it defaults to 2.


ПОМЕСТИТЬ.В.РАБОЧУЮКНИГУ([ном_типа])

Adds a new sheet to the workbook.

ном_типаThe type of sheet that is to be added. The possible values are:
1Лист
2Диаграмма
3Макрос
If this parameter is omitted it defaults to the type of the currently active sheet.


ПРАВКА.УДАЛИТЬ([сдвиг_ном])

Simulates the Правка Удалить menu option.

сдвиг_номThe way in which the cell deletion is to be processed. The possible values are:
1со сдвигом влево
2со сдвигом вверх
3строку
4столбец
If this parameter is omitted it defaults to 2.


ПРЕДУПРЕЖДЕНИЕ(текст_сообщения, [ном_типа], [ссылка_на_справку])

Displays a message box containing the specified text. It returns ИСТИНА if the ОК button is pressed, otherwise ЛОЖЬ.

текст_сообщенияThe text to be displayed in the message box.
ном_типаThe type of message box to be displayed. The possible values are:
1A box containing a question mark icon and ОК and Отмена buttons.
2A box containing an information icon and an ОК button.
3A box containing an exclamation icon and an ОК button.
If this parameter is omitted it defaults to 2.
ссылка_на_справкуA reference to a Help topic (not currently implemented).


ПРОГРЕССИЯ([строки_или_столбцы], [номер_типа], [дата_номера], [значение_шага], [кон_знач], [направление])

Simulates the Правка Заполнение Прогрессия menu option.

строки_или_столбцыIndicates whether the series is in rows or columns. The possible values are:
1по строкам
2по столбцам
If this parameter is omitted it defaults depending on the shape of the current selection.
номер_типаThe way in which the series values change. The possible values are:
1арифметическая
2геометрическая
3даты
4автозаполнение (not currently implemented)
If this parameter is omitted it defaults to 1.
дата_номераThe way in which the date values change. The possible values are:
1день
2рабочий день
3месяц
4год
If this parameter is omitted it defaults to 1.
значение_шагаThe number used to add to or multiply by the series value. If this parameter is omitted it defaults to 1.
кон_значThe value at which to stop filling the series. If this parameter is omitted then the entire selection is filled.
направлениеIndicates whether to fill the series using trend values calculated from existing data. The possible values are:
ЛОЖЬDon't use trend values.
ИСТИНАUse trend values (not currently implemented).
If this parameter is omitted it defaults to FALSE.


РАБОЧАЯ.КНИГА.АКТИВИЗИРОВАТЬ(текст_листа)

Specifies the sheet that is to be the active worksheet.

текст_листаThe sheet that is to be the active worksheet.


РАБОЧАЯ.КНИГА.ИМЯ(старый_текст, новый_текст)

Renames the specified sheet in the workbook.

старый_текстThe sheet that is to be renamed.
новый_текстThe new name for the sheet.


РАБОЧАЯ.КНИГА.УДАЛИТЬ([текст_листа])

Deletes the specified sheet from the workbook.

текст_листаThe sheet that is to be deleted. If this parameter is omitted it defaults to the currently active sheet.


СВОЙСТВА.ШРИФТА([шрифт], [стиль_шрифта], [размер], [перечеркнуть], [верхний_индекс], [нижний_индекс], [контур], [затенение], [подчеркнутый], [цвет], [обычный], [фон], [нач_символ], [число_символов])

Formats the cells in the selection on the current worksheet using the specified font attributes.

шрифтThe name of the font to be used.
стиль_шрифтаThe style to be used. The possible values are:
"обычный"Removes the bold and italic attributes.
"полужирный"Sets the font to bold.
"курсив"Sets the font to italic.
"полужирный курсив"Sets the font to bold and italic.
If this parameter is omitted the style is not changed.
размерThe point size to be used. If this parameter is omitted the size is not changed.
перечеркнутьSets the strikethrough attribute. The possible values are:
ЛОЖЬThe font does not have the strikethrough attribute
ИСТИНАThe font has the strikethrough attribute
If this parameter is omitted the strikethrough attribute is not changed.
верхний_индексNot currently implemented.
нижний_индексNot currently implemented.
контурNot currently implemented.
затенениеNot currently implemented.
подчеркнутыйThe underline style to be used. The possible values are:
0Нет
1Одинарное, по значению
2Двойное, по значению (not currently implemented)
3Одинарное, по ячейке (not currently implemented)
4Двойное, по ячейке (not currently implemented)
If this parameter is omitted the underline style is not changed.
цветThe color to be used. The possible values are:
0Automatic
1 to 56One of the colors displayed in the Формат Ячейки Шрифт dialog box
If this parameter is omitted the color is not changed.
обычныйNot currently implemented.
фонNot currently implemented.
нач_символNot currently implemented.
число_символовNot currently implemented.


СИГНАЛ([тон_число])

Causes the computer to beep.

тон_числоA number from 1 to 4 indicating which type of beep is to be produced (not currently implemented - all values will produce the same tone). If this parameter is omitted it defaults to 1.


СОРТИРОВКА([ориентация], [ключ1], [порядок1], [ключ2], [порядок2], [ключ3], [порядок3], [верхний_колонтитул], [настройка], [регистр])

Simulates the Формат Данные Сортировка menu option.

ориентацияSpecifies whether to sort the rows or columns. The possible values are:
1Sort rows
2Sort columns
If this parameter is omitted it defaults to 1.
ключ1Specifies a reference to the first column or row to sort on. If this parameter is omitted it defaults to the first column or row in the selection.
порядок1Specifies whether to sort the data in ascending or descending order. The possible values are:
1по возрастанию
2по убыванию
If this parameter is omitted it defaults to 1.
ключ2Specifies a reference to the second column or row to sort on. If this parameter is omitted then the second key is not used.
порядок2Specifies whether to sort the data in ascending or descending order. The possible values are:
1по возрастанию
2по убыванию
If this parameter is omitted it defaults to 1.
ключ3Specifies a reference to the third column or row to sort on. If this parameter is omitted then the third key is not used.
порядок3Specifies whether to sort the data in ascending or descending order. The possible values are:
1по возрастанию
2по убыванию
If this parameter is omitted it defaults to 1.
верхний_колонтитулSpecifies whether the selected cells include a header row or column. The possible values are:
0Determine the presence of a header automatically
1There is a header
2There is no header
If this parameter is omitted it defaults to 2.
настройкаSpecifies whether to use a custom list for the first sort key. The possible values are:
1Use normal sort sequence
2Day short names
3Day long names
4Month short names
5Month long names
If this parameter is omitted it defaults to 1.
регистрSpecifies whether the sort should be case-sensitive. The possible values are:
ИСТИНАThe sort is case-sensitive
ЛОЖЬThe sort is not case-sensitive
If this parameter is omitted it defaults to ЛОЖЬ.


СПЕЦИАЛЬНАЯ.ВСТАВКА([ном_вставки], [номер_операции], [пропуск_пустых], [перестановка])

Simulates the Правка Специальная вставка menu option.

ном_вставкиThe type of information to be pasted. The possible values are:
1все
2формулы
3значения
4форматы
5примечания
6без рамки
If this parameter is omitted it defaults to 1.
номер_операцииThe way in which the data being pasted is merged with existing data. The possible values are:
1нет
2сложить
3вычесть
4умножить
5разделить
If this parameter is omitted it defaults to 1.
пропуск_пустыхWhether to ignore blank cells in the data being pasted. The possible values are:
ЛОЖЬBlank cells are included.
ИСТИНАBlank cells are skipped.
If this parameter is omitted it defaults to ЛОЖЬ.
перестановкаWhether to transpose the data being pasted. The possible values are:
ЛОЖЬData is not transposed.
ИСТИНАData is transposed. (Not currently supported)
If this parameter is omitted it defaults to ЛОЖЬ.


ССЫЛЗНАЧ(ссылка)

Returns the values of cells in a reference. You should not need to use this function, as references are automatically converted to values where necessary when they are used in formulas.

ссылкаThe reference to the cells whose values you want.


ССЫЛТЕКСТ(ссылка, [а1])

Returns a string containing the specified reference.

ссылкаThe reference that is to be converted to text.
а1Specifies the style of the reference. The possible values are:
ЛОЖЬR1C1 style
ИСТИНАA1 style
If this parameter is omitted it defaults to ЛОЖЬ.


СТЕРЕТЬ([ном_типа])

Simulates the Правка Очистить menu option.

ном_типаThe type of information to clear from the current selection on the active worksheet. The possible values are:
1Clear all
2Clear formats
3Clear contents
4Clear comments
If this parameter is omitted it defaults to 3.


ТЕКСТССЫЛ(текст, [а1])

Returns a reference corresponding to the specified text.

текстThe string containing the reference.
а1Specifies the style of the reference. The possible values are:
ЛОЖЬR1C1 style
ИСТИНАA1 style
If this parameter is omitted it defaults to ЛОЖЬ.


ФОРМА.ДАННЫХ()

Simulates the Формат Данные Форма menu option.



ФОРМАТ.ЧИСЛО(строка_форматирования)

Formats the cells in the selection on the current worksheet using the specified format.

строка_форматированияThe number format to be used.


ФОРМУЛА(текст_формулы, [ссылка])

Enters the specified formula in the specified reference.

текст_формулыThe formula to be inserted.
ссылкаThe reference where formula to be inserted. If this parameter is omitted it defaults to the cursor position on the active worksheet.


ФОРМУЛА.ПЕРЕЙТИ([ссылка], [угол])

Simulates the Правка Перейти menu option.

ссылкаThe cells that are to be selected. If the sheet name is omitted then it defaults to the currently active sheet. If this parameter is omitted it defaults to the sheet and cells that were selected before the last goto command.
уголSpecifies whether the top-left corner of the selection is to be placed in the top-left corner of the window. The possible values are:
ЛОЖЬThe sheet is not scrolled to move the selection to the top-left corner of the window.
ИСТИНАThe sheet is scrolled to move the selection to the top-left corner of the window.
If this parameter is omitted it defaults to ЛОЖЬ.


ШИРИНА.СТОЛБЦА([ширина_число], [ссылка], [стандартный], [тип_число], [стандарт_число])

Simulates the Формат Столбец menu options.

ширина_числоThe new width of the columns. The width is measured in characters. This parameter is ignored if стандартный is ИСТИНА or type_num is specified. If this parameter is omitted the width of the specified columns is not changed.
ссылкаThe columns whose width is to be changed. If this parameter is omitted it defaults to the current selection on the active worksheet.
стандартныйSpecifies whether the columns are to be set to the standard column width. The possible values are:
ИСТИНАThe columns are set to the standard width.
ЛОЖЬThe columns are not set to the standard width.
If this parameter is omitted it defaults to ЛОЖЬ.
тип_числоSpecifies whether the columns are to be hidden, unhidden or automatically sized. This parameter is ignored if стандартный is ИСТИНА. The possible values are:
1The columns are hidden.
2The columns are unhidden.
3The columns are set to the width of the longest displayed value.
If this parameter is omitted the columns will not be hidden, unhidden or auto-sized.
стандарт_числоSpecifies the value to be used for the standard width. The width is measured in characters. If this parameter is omitted the standard width is not changed.