Application.IsValidObject Method
Publisher Developer Reference |
Determines whether the specified object variable references a valid object and returns a Boolean value: True if the specified variable that references an object is valid, False if the object referenced by the variable has been deleted.
Syntax
expression.IsValidObject(Object)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Object | Required | Object | A variable that references an object. |
Return Value
Boolean
Example
This example formats the line of a valid object.
Visual Basic for Applications |
---|
|
Use the following subroutine to call the above subroutine.
Visual Basic for Applications |
---|
|
See Also