Das Programm führt die erste Sub oder Function aus und dann stoppt die Programmausführung.
The program executes the first Sub or Function and then program execution stops.
Wenn Sie sich bemühen , den Code für eine Sub oder Function möglichst allgemein zu halten , können Sie ihn im Allgemeinen in anderen Programmen wieder verwenden.
If you take care to write generic code for a Sub or Function, you can probably re- use it in other programs.
Eine Sub kann eventuell einige Argumente als Parameter annehmen , sie gibt jedoch keine Werte an die aufrufende Sub oder Function zurück. Syntaxbeispiel
A Sub possibly takes some arguments as parameters but does not return any values back to the calling Sub or Function, for example
Sie können Ihre Excel-Arbeitsmappe auch in WordPad öffnen. Wenn die Arbeitsmappe geöffnet wird, können Sie möglicherweise auch den Microsoft Visual Basic-Code in Ihren Modulen und Klassenmodulen wiederherstellen. Sie können nach den Wörtern Sub oder Function suchen, um den Code zu finden.
You can also open your Excel workbook in WordPad. If the workbook does open, you may be able to recover the Microsoft Visual Basic code in your modules and class modules. You can search for the words Sub or Function to find your code.
In vielen Fällen benötigen Sie eine Variable , die in allen Prozeduren , in jedem Modul aller Bibliotheken gültig ist , oder nachdem eine SUB oder FUNCTION ausgeführt wird.
In many cases, you need a variable to be valid in all procedures, in every module of all libraries, or after a SUB or FUNCTION is exited.
Die Definition eines Makros beginnt mit dem Typ des Makros - SUB oder FUNCTION - und endet mit END SUB bzw. END FUNCTION.
The definition of a macro begins with its type - SUB or FUNCTION - and ends with END SUB or END FUNCTION.
Deklarieren von Variablen außerhalb einer SUB oder FUNCTION
Declaring Variables Outside a SUB or FUNCTION
Speichern von Variableninhalten nach dem Verlassen einer SUB oder FUNCTION
Saving Variable Content after Exiting a SUB or FUNCTION
Die Deklaration muss innerhalb einer SUB oder FUNCTION stehen.
Sie können Parameter entweder als Referenz oder als Wert an eine SUB oder FUNCTION übergeben.
Parameters can be passed to a SUB or a FUNCTION either by reference or by value.
Vor der ersten SUB oder FUNCTION steht das Hauptprogramm.
Code written above the first 'SUB' or 'FUNCTION' defines the main program.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.