Funkcji sterowanie makrami

[ ] indicates optional parameters

ARGUMENT([nazwa_tekst], [nr_typu_danych], [adres])
DLA(licznik_tekst, liczba_początkowa, liczba_końcowa, [krok_liczba])
DLA.KOMÓRKI(adres_nazwa, [obszar_adres], [pomiń_puste])
DOPÓKI(test_logiczny)
IDŹ.DO(odwołanie)
INACZEJ()
INACZEJ.JEŻELI(test_logiczny)
JEŻELI(test_logiczny)
KONIEC.JEŻELI()
NAST()
OKREŚL.NAZWĘ(nazwa_tekst, [wartość])
OKREŚL.WARTOŚĆ(adres, wartości)
POCZEKAJ([liczba_kolejna])
POWRÓT([wartość])
PRZERWIJ()


Funkcji sterowanie makrami

ARGUMENT([nazwa_tekst], [nr_typu_danych], [adres])

Defines an argument for a custom function.

nazwa_tekstThe defined name that will be assigned to the argument. If this parameter is omitted then no name will be assigned.
nr_typu_danychThe acceptable data type(s) for the argument value. It can be any combination of the following (to specify more than one value, add the numbers together):
1liczbowe
2tekstowe
4logiczne
8odwołanie
16błąd
64tablica
If this parameter is omitted it defaults to 7.
adresThe cell reference where the argument value will be stored. If this parameter is omitted then the argument value will not be stored.


DLA(licznik_tekst, liczba_początkowa, liczba_końcowa, [krok_liczba])

Performs a group of instructions a specified number of times. The end of the group is indicated by a NAST function.

licznik_tekstA defined name that will be used to store the current index.
liczba_początkowaThe initial value to be assigned to the counter.
liczba_końcowaThe last value to be assigned to the counter.
krok_liczbaThe value to be added to the counter each time around the loop.
If this parameter is omitted it defaults to 1.


DLA.KOMÓRKI(adres_nazwa, [obszar_adres], [pomiń_puste])

Performs a group of instructions for each cell in a specified area. The end of the group is indicated by a NAST function.

adres_nazwaA defined name that will be used to store the current reference.
obszar_adresThe range of cells to be processed.
If this parameter is omitted it defaults to the current selection.
pomiń_pusteWhether blank cells are to be skipped. The possible values are:
FAŁSZAll cells in the area are processed
PRAWDAOnly the non-blank cells in the area are processed
If this parameter is omitted it defaults to FAŁSZ.


DOPÓKI(test_logiczny)

Specifies a logical test that conditions the execution of a block of statements multiple times. The statements between the DOPÓKI and NAST functions will be repeated as long as the logical test returns the value PRAWDA.

test_logicznyAn expression that results in PRAWDA or FAŁSZ.


IDŹ.DO(odwołanie)

Forces the macro to continue with the statement at the reference.

odwołanieThe reference of the cell where macro execution is to continue.


INACZEJ()

Introduces the block of statements to be processed when the corresponding JEŻELI or INACZEJ.JEŻELI condition is false.



INACZEJ.JEŻELI(test_logiczny)

Specifies another logical test that conditions a block of statements when the corresponding JEŻELI or INACZEJ.JEŻELI condition is false.

test_logicznyAn expression that results in PRAWDA or FAŁSZ.


JEŻELI(test_logiczny)

Specifies a logical test that conditions the execution of a block of statements.

test_logicznyAn expression that results in PRAWDA or FAŁSZ.


KONIEC.JEŻELI()

Specifies the end of the block of statements conditioned by the corresponding JEŻELI or INACZEJ.JEŻELI.



NAST()

Specifies the end of the block of statements contained in a DLA, DLA.KOMÓRKI or DOPÓKI loop.



OKREŚL.NAZWĘ(nazwa_tekst, [wartość])

Assigns a defined name to the specified value.

nazwa_tekstThe defined name to use.
wartośćThe value to be associated with the name. If this parameter is omitted then the name is deleted.


OKREŚL.WARTOŚĆ(adres, wartości)

Stores the specified values in the specified cells on the macro sheet. Do not use this function to try to update cells on a worksheet.

adresThe cells where the values are to be stored.
wartościThe values to be stored.


POCZEKAJ([liczba_kolejna])

Forces the macro to wait until the date/time specified by the serial number.

liczba_kolejnaThe date/time when the macro is to resume. If this parameter is omitted the macro does not wait.


POWRÓT([wartość])

Forces the macro to end, and if it is a custom function then to return the specified value.

wartośćFor custom functions, the value to be returned.


PRZERWIJ()

Ends the processing of a DLA, DLA.KOMÓRKI or DOPÓKI loop. The macro will continue with the statement after the NAST function.