Use arguments in Visual Basic

Use arguments in Visual Basic

An argument supplies additional information to a procedure, statement, or method. When you create a Function or Sub procedure, you declare arguments if you want to be able to supply information to the procedure when you call it.

When you call a procedure that has arguments, you specify the arguments that you want to pass to it. You also specify arguments for many statements and methods.

What do you want to do?

Create a custom function

Create a Sub procedure

Specify arguments when you use a procedure, statement, or method