Makrosteuerung Funktionen

[ ] indicates optional parameters

ABBRECHEN()
ARGUMENT([Namen]; [Typ]; [Bezug])
ENDE.WENN()
FÜR(Zähler; Anfang; Ende; [Schrittweite])
FÜR.ZELLE(Bezug; [Bezugsbereich]; [Überspringen])
GEHEZU(Bezug)
NAMEN.ZUWEISEN(Name; [Wert])
NEUSTART([Ebene])
RÜCKSPRUNG([Wert])
SOLANGE(Prüfung)
SONST()
SONST.WENN(Prüfung)
STOP([Abbrechen])
WARTEN([Fortlaufende_Zahl])
WEITER()
WENN(Prüfung)
WERT.FESTLEGEN(Bezug; Werte)


Makrosteuerung Funktionen

ABBRECHEN()

Ends the processing of a FÜR, FÜR.ZELLE or SOLANGE loop. The macro will continue with the statement after the WEITER function.



ARGUMENT([Namen]; [Typ]; [Bezug])

Defines an argument for a custom function.

NamenThe defined name that will be assigned to the argument. If this parameter is omitted then no name will be assigned.
TypThe 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):
1Zahl
2Text
4Logisch
8Verweis
16Fehler
64Array
If this parameter is omitted it defaults to 7.
BezugThe cell reference where the argument value will be stored. If this parameter is omitted then the argument value will not be stored.


ENDE.WENN()

Specifies the end of the block of statements conditioned by the corresponding WENN or SONST.WENN.



FÜR(Zähler; Anfang; Ende; [Schrittweite])

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

ZählerA defined name that will be used to store the current index.
AnfangThe initial value to be assigned to the counter.
EndeThe last value to be assigned to the counter.
SchrittweiteThe value to be added to the counter each time around the loop.
If this parameter is omitted it defaults to 1.


FÜR.ZELLE(Bezug; [Bezugsbereich]; [Überspringen])

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

BezugA defined name that will be used to store the current reference.
BezugsbereichThe range of cells to be processed.
If this parameter is omitted it defaults to the current selection.
ÜberspringenWhether blank cells are to be skipped. The possible values are:
FALSCHAll cells in the area are processed
WAHROnly the non-blank cells in the area are processed
If this parameter is omitted it defaults to FALSCH.


GEHEZU(Bezug)

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

BezugThe reference of the cell where macro execution is to continue.


NAMEN.ZUWEISEN(Name; [Wert])

Assigns a defined name to the specified value.

NameThe defined name to use.
WertThe value to be associated with the name. If this parameter is omitted then the name is deleted.


NEUSTART([Ebene])

Specifies the number of levels that will be skipped when this macro returns.

EbeneThe number of levels to skip. If this parameter is omitted then all levels are skipped.


RÜCKSPRUNG([Wert])

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

WertFor custom functions, the value to be returned.


SOLANGE(Prüfung)

Specifies a logical test that conditions the execution of a block of statements multiple times. The statements between the SOLANGE and WEITER functions will be repeated as long as the logical test returns the value WAHR.

PrüfungAn expression that results in WAHR or FALSCH.


SONST()

Introduces the block of statements to be processed when the corresponding WENN or SONST.WENN condition is false.



SONST.WENN(Prüfung)

Specifies another logical test that conditions a block of statements when the corresponding WENN or SONST.WENN condition is false.

PrüfungAn expression that results in WAHR or FALSCH.


STOP([Abbrechen])

Terminates all running macros.

AbbrechenWhether, in an Auto_schließen macro, to prevent the workbook from being closed (not currently implemented).


WARTEN([Fortlaufende_Zahl])

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

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


WEITER()

Specifies the end of the block of statements contained in a FÜR, FÜR.ZELLE or SOLANGE loop.



WENN(Prüfung)

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

PrüfungAn expression that results in WAHR or FALSCH.


WERT.FESTLEGEN(Bezug; Werte)

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.

BezugThe cells where the values are to be stored.
WerteThe values to be stored.