Invalid or unqualified reference

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.

                      With object
   statements
End With

To correct this error

  • Specify an object for the With statement.

See Also

Reference

With Statement (VBScript)