Procedural Statements
- Last UpdatedJul 18, 2023
- 1 minute read
VBA procedural function statements are provided to assist with conditional code execution and program flow:
|
Call statement |
Transfers control to a Sub procedure, function procedure, or dynamic-link library (DLL) procedure. |
|
Function statement |
Declares and defines a procedure that can receive arguments and return a value of a specified data type. |
|
End Function statement |
Ends a program or a block of statements within a function. |
|
Sub statement |
Declares and defines a Sub procedures name, parameters and code. |
|
End Sub statement |
Ends a program or a block of statements within a subroutine. |
|
CicodeCallOpen function |
Calls a Cicode function from VBA. |
|
CicodeCallReturn function |
Obtains the return value of the most recently completed Cicode function opened with the VBA CicodeCallOpen function. |
Cicode functions used to handle VBA functions and statements:
|
VbCallOpen Function function |
Opens a VBA function or subroutine from Cicode. |
|
VbCallRun Function function |
Runs the opened VBA function or subroutine from Cicode. |
|
VbCallReturn Function function |
Obtains the return value of the completed VBA function previously opened with the Cicode VbCallOpen function. |