Often, you need to perform several different actions on the same object. For example, you may need to set several properties or execute several methods for the same object.

To set multiple properties for the same object

Within the nested With statement, however, the syntax refers to the nested object; properties of the object in the outer With statement are not set.