NewFile.Add Method (Office)
Adds a new item to the New Item task pane. Returns a Boolean value to indicate whether the operation was successful.
Syntax
expression .Add(FileName, Section, DisplayName, Action)
expression Required. A variable that represents a NewFile 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. |