You attempted to use the With statement on something other than an object. The With statement can only be used with non-null object values. The following demonstrates the correct structure of a With block.
![]() | |
---|---|
Withobject statements End With |
To correct this error
Specify an object for the With statement.
See Also