Syntax

expression.Add(FileName, Section, DisplayName, Action)

expression Required. A variable that represents a object.

Parameters

Name Required/Optional Data Type Description
FileName Required String The name of the file to add to the list of files on the task pane.
Section Optional Variant The section to which to add the file. Can be any msoFileNew constant.
DisplayName Optional Variant The text to display in the task pane.
Action Optional Variant The action to take when a user clicks the item. Can be any msoFileNew constant.

See also: