Description
The With statement executes a series of statements on a single object.
This statement has the following form:
With object
statements
End With
Parameter | Description |
---|---|
object | (required) Specifies a name of an object or a function that returns an object |
statements | (required) One or more statements to be executed on object |
Examples
The following example shows the basic use of this statement:
With MyCaption
.Width = 200
.Height = 200
.Title = "This is MyCaption"
End With
Miscellaneous Information
Supported in Version: | 5.0 |
---|