Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.63 KB

description-property-visual-basic-for-applications.md

File metadata and controls

39 lines (25 loc) · 1.63 KB
title keywords f1_keywords ms.assetid ms.date ms.localizationpriority
Description property (Visual Basic for Applications)
vblr6.chm1014191
vblr6.chm1014191
cab35a69-b45a-2d96-f495-2fae208fca6a
12/19/2018
medium

Description property

Returns or sets a string expression containing a descriptive string associated with an object. Read/write.

For the Err object, returns or sets a descriptive string associated with an error.

Remarks

The Description property setting consists of a short description of the error. Use this property to alert the user to an error that you either can't or don't want to handle.

When generating a user-defined error, assign a short description of your error to the Description property. If Description isn't filled in, and the value of Number corresponds to a Visual Basic run-time error, the string returned by the Error function is placed in Description when the error is generated.

Example

This example assigns a user-defined message to the Description property of the Err object.

Err.Description = "It was not possible to access an object necessary " _
& "for this operation."

See also

[!includeSupport and feedback]