DefaultExt

This property returns and sets the default file name extension for a dialog box.

Syntax

object.DefaultExt [= string]

Parameters

object
Object expression that evaluates to a CommonDialog control.
string
String expression that specifies the file extension.

Remarks

Use this property to specify a default file name extension, such as .txt or .doc. When a file with no extension is saved, the extension specified by this property is automatically appended to the file name.