When you need the procedure you can call a function, with the function name, instead of rewriting the entire code each time.
Când ai nevoie de procedură poți apela o funcție, cu numele funcției, în loc de a rescrie tot codul de fiecare dată.
If you reference the function in a different workbook, you must precede the function name with the name of the workbook in which the function resides.
Dacă faceți referire la funcția din alt registru de lucru, trebuie să precede numele funcției cu numele registrului de lucru în care se află funcția.
Instead of a function name, an array containing an object reference and a method name can also be supplied.
În loc de denumirea funcției, un tablou ce conține o referință la obiect și denumirea metodei pot fi furnizate.
You can suppress the error message on failure by prepending a to the function name. See Also
Puteți suprima mesajul de eroare în cazul eșecului adăugând un înainte de denumirea funcției.
As you can see, you define a function by writing func, then your function name, then open and close parentheses, then a block of code marked by open and close braces.
După cum poți vedea, o funcție este definită prin a scrie func, apoi numele funcției tale, apoi deschizi și închizi parantezele, apoi codul propriu-zis scris în interiorul parantezelor pătrate.
After you type the equal sign (=) and the function name, you can see information about the formula syntax and the function arguments.
După ce tastați semnul egal (=) și numele funcției, puteți obține informații despre sintaxa formulei și despre argumentele funcției.
Functions are a way of packaging functionality that you want to reuse, so that whenever you want the functionality you can call the function with the function name rather than constantly rewriting the entire code.
Functions sunt o modalitate de împachetare a funcționalității pe care dorești să o reutilizezi. Când ai nevoie de procedură poți apela o funcție, cu numele funcției, în loc de a rescrie tot codul de fiecare dată.
➜ pp. iv-vii Know what you want to do but don't know the function name?
Description strlen The function name.
Descrierea strlen Numele funcției.
In addition to the function name, the Function statement usually specifies one or more arguments.
În plus față de numele funcției, instrucțiunea funcției specifică, de obicei, unul sau mai multe argumente.
To make the command button run an existing built-in function or VBA function, type an equal sign (=) followed by the function name; for example, =MsgBox("Hello World") or =MyFunction(arguments).
Pentru a face butonul de comandă să ruleze o funcție predefinită existentă sau o funcție VBA, tastați un semn egal (=), urmat de numele funcției; de exemplu, =MsgBox("Salut lume") sau =FuncțiaMea(argumente).
For example, if you converted a macro named MyMacro, the function name will be MyMacro().
De exemplu, dacă ați efectuat conversia unei macrocomenzi denumite MacrocomandaMea, numele funcției va fi MacrocomandaMea().
In the Visual Basic Editor, make a note of the function name.
În Visual Basic Editor, rețineți numele funcției.