NewFile Object
Represents items listed on the New task pane available in several Microsoft Office applications.
Note
|
|---|
| The use of CommandBars in some Microsoft Office applications has been superseded by the new Ribbon user interface. For more information, search help for the keyword "Ribbon." |
Remarks
The following table shows the property to use to access the NewFile object in each of the applications.
| Application | Property |
|---|---|
| Microsoft Access | NewFileTaskPane |
| Microsoft Excel | NewWorkbook |
| Microsoft FrontPage | NewPageOrWeb |
| Microsoft PowerPoint | NewPresentation |
| Microsoft Word | NewDocument |
Note
|
|---|
| The examples below are for Word, but you can change the NewDocument property for any of the properties listed above and use the code in the corresponding application. |
Example
Use the Add method to add a new item to the Newtask pane. The following example adds an item to Word's New Documenttask pane.
| Visual Basic for Applications |
|---|
|
Use the Remove method to remove an item from the Newtask pane. The following example removes the document added in the above example from Word's New Documenttask pane.
| Visual Basic for Applications |
|---|
|
See also:
| Item | Item | Item |
Note