Clears the list of files for the current AnswerWizard, including the default list of files for the Microsoft Office host application.

Note
The Microsoft Office Assistant and AnswerWizard have been depreciated in the release of the Microsoft Office system.

Syntax

expression.ClearFileList

expression A variable that represents an AnswerWizard object.

Remarks

Use this method to remove all entries from the current file list for the specified application. You can also use it to ensure that none of the default AnswerWizard files for the host application are available to users. You can then build a custom list of files by using the Add method of the AnswerWizardFiles collection.

To restore the default AnswerWizard file set for the host application, use the ResetFileList method.

Example
This example prepares the AnswerWizard to accept a custom file list and then adds two custom AnswerWizard files. First, the example clears the file list, and then it adds two custom AnswerWizard files and checks the file count and the file names to ensure that the files were added correctly.

Visual Basic for Applications
Dim customAnswerWizard As AnswerWizard Set customAnswerWizard = Application.AnswerWizard customAnswerWizard.ClearFileList customAnswerWizard.Files.Add ("c:\awfiles\custom_1.aw") customAnswerWizard.Files.Add ("c:\awfiles\custom_2.aw") If customAnswerWizard.Files.Count = 2 Then MsgBox "Files " & customAnswerWizard.Files.Item(1) & _ " and " & customAnswerWizard.Files(2) & _ " were added sucessfully." End If
clear clear file list Clear File List Method clear files clear the file list clearfile clearfilelist clearfilelist method delete file list list ofv remove list of files

See also: