Gets an AnswerWizardFiles collection that represents the list of files available to the current AnswerWizard. Read-only.

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

Syntax

expression.Files

expression A variable that represents an object.

Example

This example resets the file list for the current AnswerWizard and then displays both the file count and the file names in a message box.

Visual Basic for Applications
Dim customAnswerWizard As AnswerWizard Dim strFileList As String Dim intCounter As Integer Dim intNumFiles As Integer Set customAnswerWizard = Application.AnswerWizard intCounter = 1 customAnswerWizard.ResetFileList strFileList = "" intNumFiles = customAnswerWizard.Files.Count For intCounter = 1 To (intNumFiles) strFileList = strFileList & _ customAnswerWizard.Files.Item(intCounter) & Chr(13) Next MsgBox "There are " & customAnswerWizard.Files.Count & _ " files avaialble through this AnswerWizard: " & _ Chr(13) & strFileList

See also: