Files & Directories Enumerations

msoConditionSpecifies the condition for comparison between a file and a specified property in a file search.
msoConnectorSpecifies the connector between two similar property test values.
msoFileDialogTypeSpecifies the type of a FileDialog object.
msoFileDialogViewSpecifies the view presented to the user in a file dialog box.
msoFileFindViewSpecifies view to use for a file find process.
msoFileTypeSpecifies a type of file.
msoFileValidationModeSpecifies the file validation mode.
msoLastModifiedSpecifies the period of time to filter files by the date last modified.
msoSearchInSpecifies the area in which the Execute method of the FileSearch object searches for files.
msoCondition
Specifies the condition for comparison between a file and a specified property in a file search.
msoConnector
Specifies the connector between two similar property test values.
msoFileDialogType
Specifies the type of a FileDialog object.
msoFileDialogView
Specifies the view presented to the user in a file dialog box.
msoFileFindView
Specifies view to use for a file find process.
msoFileType
Specifies a type of file.
msoFileValidationMode
Specifies the file validation mode.
msoLastModified
Specifies the period of time to filter files by the date last modified.
msoSearchIn
Specifies the area in which the Execute method of the FileSearch object searches for files.

msoCondition

Specifies the condition for comparison between a file and a specified property in a file search.

msoConditionAnyNumberBetweenAny number between values specified with the Value and SecondValue properties of the PropertyTest object.
msoConditionAnytimeDate specified in the Name property of the PropertyTest object can be any time.
msoConditionAnytimeBetweenDate specified in the Name property of the PropertyTest object is between the dates specified with the Value and SecondValue properties of the PropertyTest object.
msoConditionAtLeastValue of the file property specified in Name property of the PropertyTest object is at least the value specified in the Value property of the PropertyTest object.
msoConditionAtMostValue of the file property specified in Name property of the PropertyTest object is at most the value specified in the Value property of the PropertyTest object.
msoConditionBeginsWithValue of the file property specified in Name property of the PropertyTest object begins with the value specified in the Value property of the PropertyTest object.
msoConditionDoesNotEqualValue of the file property specified in Name property of the PropertyTest object does not equal the value specified in the Value property of the PropertyTest object.
msoConditionEndsWithValue of the file property specified in Name property of the PropertyTest object ends with the value specified in the Value property of the PropertyTest object.
msoConditionEqualsValue of the file property specified in Name property of the PropertyTest object equals the value specified in the Value property of the PropertyTest object.
msoConditionEqualsCompletedStatus equals "Completed"
Value of the Name property must be Status.
msoConditionEqualsDeferredStatus equals "Deferred"
Value of the Name property must be Status.
msoConditionEqualsHighPriority equals "High"
Value of the Name property must be Priority.
msoConditionEqualsInProgressStatus equals "In Progress"
Value of the Name property must be Status.
msoConditionEqualsLowPriority equals "Low"
Value of the Name property must be Priority.
msoConditionEqualsNormalPriority equals "Normal"
Value of the Name property must be Priority.
msoConditionEqualsNotStartedStatus equals "Not Started"
Value of the Name property must be Status.
msoConditionEqualsWaitingStatus equals "Waiting for Someone Else"
Value of the Name property must be Status.
msoConditionFileTypeAllFilesFile can be any type.
msoConditionFileTypeBindersBinder file.
msoConditionFileTypeCalendarItemCalendar item.
msoConditionFileTypeContactItemContact item.
msoConditionFileTypeDatabasesDatabase.
msoConditionFileTypeDataConnectionData connection file.
msoConditionFileTypeDesignerFilesDesigner file.
msoConditionFileTypeDocumentImagingDocument imaging file.
msoConditionFileTypeExcelWorkbooksExcel workbook.
msoConditionFileTypeJournalItemJournal item.
msoConditionFileTypeMailItemMail item.
msoConditionFileTypeNoteItemNote item.
msoConditionFileTypeOfficeFilesFile can be any Office file type.
msoConditionFileTypeOutlookItemsOutlook item.
msoConditionFileTypePhotoDrawFilesPhotoDraw file.
msoConditionFileTypePowerPointPowerPoint presentation.
msoConditionFileTypeProjectFilesProject file.
msoConditionFileTypePublisherFilesPublisher file.
msoConditionFileTypeTaskItemTask item.
msoConditionFileTypeTemplatesTemplate.
msoConditionFileTypeVisioFilesVisio file.
msoConditionFileTypeWebPagesWeb page.
msoConditionFileTypeWordDocumentsWord document.
msoConditionFreeTextValue of the file property specified in the Name property of the PropertyTest object matches the value specified in the Value property of the PropertyTest object when a FreeText search is used.
msoConditionIncludesValue of the file property specified in Name property of the PropertyTest object includes the value specified in the Value property of the PropertyTest object.
msoConditionIncludesFormsOfValue of the file property specified in Name property of the PropertyTest object includes forms of the value specified in the Value property of the PropertyTest object.
msoConditionIncludesNearEachOtherValue of the file property specified in Name property of the PropertyTest object and the value specified in the Value property of the PropertyTest object are near each other.
msoConditionIncludesPhraseValue of the file property specified in Name property of the PropertyTest object includes the phrase specified in the value specified in the Value property of the PropertyTest object.
msoConditionInTheLastDate specified in the Name property of the PropertyTest object is within the last time interval specified in the Value property of the PropertyTest object.
msoConditionInTheNextDate specified in the Name property of the PropertyTest object is within the next time interval specified in the Value property of the PropertyTest object.
msoConditionIsExactlyValue of the file property specified in Name property of the PropertyTest object is exactly the value specified in the Value property of the PropertyTest object.
msoConditionIsNoValue of the file property specified in Name property of the PropertyTest object is "False".
msoConditionIsNotValue of the file property specified in Name property of the PropertyTest object is not the value specified in the Value property of the PropertyTest object.
msoConditionIsYesValue of the file property specified in Name property of the PropertyTest object is "True".
msoConditionLastMonthDate specified in the Name property of the PropertyTest object is within the last month.
msoConditionLastWeekDate specified in the Name property of the PropertyTest object is within the last week.
msoConditionLessThanValue of the file property specified in Name property of the PropertyTest object is less than the value specified in the Value property of the PropertyTest object.
msoConditionMoreThanValue of the file property specified in Name property of the PropertyTest object is more than the value specified in the Value property of the PropertyTest object.
msoConditionNextMonthDate specified in the Name property of the PropertyTest object is next month.
msoConditionNextWeekDate specified in the Name property of the PropertyTest object is next week.
msoConditionNotEqualToCompletedStatus does not equal "Completed"
Value of the Name property must be Status.
msoConditionNotEqualToDeferredStatus does not equal "Deferred"
Value of the Name property must be Status.
msoConditionNotEqualToHighValue of file property specified in the Name property of the PropertyTest object does not equal "High"
Value of the Name property must be Priority or Importance.
msoConditionNotEqualToInProgressStatus does not equal "In Progress"
Value of the Name property must be Status.
msoConditionNotEqualToLowValue of file property specified in the Name property of the PropertyTest object does not equal "Low"
Value of the Name property must be Priority or Importance.
msoConditionNotEqualToNormalValue of file property specified in the Name property of the PropertyTest object does not equal "Normal"
Value of the Name property must be Priority or Importance.
msoConditionNotEqualToNotStartedStatus does not equal "Not Started"
Value of the Name property must be Status.
msoConditionNotEqualToWaitingStatus does not equal "Waiting for Someone Else"
Value of the Name property must be Status.
msoConditionOnDate specified in the Name property of the PropertyTest object is the same as the date specified in the Value property of the PropertyTest object.
msoConditionOnOrAfterDate specified in the Name property of the PropertyTest object is on or after the date specified in the Value property of the PropertyTest object.
msoConditionOnOrBeforeDate specified in the Name property of the PropertyTest object is on or before the date specified in the Value property of the PropertyTest object.
msoConditionThisMonthDate specified in the Name property of the PropertyTest object is this month.
msoConditionThisWeekDate specified in the Name property of the PropertyTest object is this week.
msoConditionTodayDate specified in the Name property of the PropertyTest object is today.
msoConditionTomorrowDate specified in the Name property of the PropertyTest object is tomorrow.
msoConditionYesterdayDate specified in the Name property of the PropertyTest object is yesterday.

msoConditionAnyNumberBetween
Any number between values specified with the Value and SecondValue properties of the PropertyTest object.
msoConditionAnytime
Date specified in the Name property of the PropertyTest object can be any time.
msoConditionAnytimeBetween
Date specified in the Name property of the PropertyTest object is between the dates specified with the Value and SecondValue properties of the PropertyTest object.
msoConditionAtLeast
Value of the file property specified in Name property of the PropertyTest object is at least the value specified in the Value property of the PropertyTest object.
msoConditionAtMost
Value of the file property specified in Name property of the PropertyTest object is at most the value specified in the Value property of the PropertyTest object.
msoConditionBeginsWith
Value of the file property specified in Name property of the PropertyTest object begins with the value specified in the Value property of the PropertyTest object.
msoConditionDoesNotEqual
Value of the file property specified in Name property of the PropertyTest object does not equal the value specified in the Value property of the PropertyTest object.
msoConditionEndsWith
Value of the file property specified in Name property of the PropertyTest object ends with the value specified in the Value property of the PropertyTest object.
msoConditionEquals
Value of the file property specified in Name property of the PropertyTest object equals the value specified in the Value property of the PropertyTest object.
msoConditionEqualsCompleted
Status equals "Completed"
Value of the Name property must be Status.
msoConditionEqualsDeferred
Status equals "Deferred"
Value of the Name property must be Status.
msoConditionEqualsHigh
Priority equals "High"
Value of the Name property must be Priority.
msoConditionEqualsInProgress
Status equals "In Progress"
Value of the Name property must be Status.
msoConditionEqualsLow
Priority equals "Low"
Value of the Name property must be Priority.
msoConditionEqualsNormal
Priority equals "Normal"
Value of the Name property must be Priority.
msoConditionEqualsNotStarted
Status equals "Not Started"
Value of the Name property must be Status.
msoConditionEqualsWaiting
Status equals "Waiting for Someone Else"
Value of the Name property must be Status.
msoConditionFileTypeAllFiles
File can be any type.
msoConditionFileTypeBinders
Binder file.
msoConditionFileTypeCalendarItem
Calendar item.
msoConditionFileTypeContactItem
Contact item.
msoConditionFileTypeDatabases
Database.
msoConditionFileTypeDataConnection
Data connection file.
msoConditionFileTypeDesignerFiles
Designer file.
msoConditionFileTypeDocumentImaging
Document imaging file.
msoConditionFileTypeExcelWorkbooks
Excel workbook.
msoConditionFileTypeJournalItem
Journal item.
msoConditionFileTypeMailItem
Mail item.
msoConditionFileTypeNoteItem
Note item.
msoConditionFileTypeOfficeFiles
File can be any Office file type.
msoConditionFileTypeOutlookItems
Outlook item.
msoConditionFileTypePhotoDrawFiles
PhotoDraw file.
msoConditionFileTypePowerPoint
PowerPoint presentation.
msoConditionFileTypeProjectFiles
Project file.
msoConditionFileTypePublisherFiles
Publisher file.
msoConditionFileTypeTaskItem
Task item.
msoConditionFileTypeTemplates
Template.
msoConditionFileTypeVisioFiles
Visio file.
msoConditionFileTypeWebPages
Web page.
msoConditionFileTypeWordDocuments
Word document.
msoConditionFreeText
Value of the file property specified in the Name property of the PropertyTest object matches the value specified in the Value property of the PropertyTest object when a FreeText search is used.
msoConditionIncludes
Value of the file property specified in Name property of the PropertyTest object includes the value specified in the Value property of the PropertyTest object.
msoConditionIncludesFormsOf
Value of the file property specified in Name property of the PropertyTest object includes forms of the value specified in the Value property of the PropertyTest object.
msoConditionIncludesNearEachOther
Value of the file property specified in Name property of the PropertyTest object and the value specified in the Value property of the PropertyTest object are near each other.
msoConditionIncludesPhrase
Value of the file property specified in Name property of the PropertyTest object includes the phrase specified in the value specified in the Value property of the PropertyTest object.
msoConditionInTheLast
Date specified in the Name property of the PropertyTest object is within the last time interval specified in the Value property of the PropertyTest object.
msoConditionInTheNext
Date specified in the Name property of the PropertyTest object is within the next time interval specified in the Value property of the PropertyTest object.
msoConditionIsExactly
Value of the file property specified in Name property of the PropertyTest object is exactly the value specified in the Value property of the PropertyTest object.
msoConditionIsNo
Value of the file property specified in Name property of the PropertyTest object is "False".
msoConditionIsNot
Value of the file property specified in Name property of the PropertyTest object is not the value specified in the Value property of the PropertyTest object.
msoConditionIsYes
Value of the file property specified in Name property of the PropertyTest object is "True".
msoConditionLastMonth
Date specified in the Name property of the PropertyTest object is within the last month.
msoConditionLastWeek
Date specified in the Name property of the PropertyTest object is within the last week.
msoConditionLessThan
Value of the file property specified in Name property of the PropertyTest object is less than the value specified in the Value property of the PropertyTest object.
msoConditionMoreThan
Value of the file property specified in Name property of the PropertyTest object is more than the value specified in the Value property of the PropertyTest object.
msoConditionNextMonth
Date specified in the Name property of the PropertyTest object is next month.
msoConditionNextWeek
Date specified in the Name property of the PropertyTest object is next week.
msoConditionNotEqualToCompleted
Status does not equal "Completed"
Value of the Name property must be Status.
msoConditionNotEqualToDeferred
Status does not equal "Deferred"
Value of the Name property must be Status.
msoConditionNotEqualToHigh
Value of file property specified in the Name property of the PropertyTest object does not equal "High"
Value of the Name property must be Priority or Importance.
msoConditionNotEqualToInProgress
Status does not equal "In Progress"
Value of the Name property must be Status.
msoConditionNotEqualToLow
Value of file property specified in the Name property of the PropertyTest object does not equal "Low"
Value of the Name property must be Priority or Importance.
msoConditionNotEqualToNormal
Value of file property specified in the Name property of the PropertyTest object does not equal "Normal"
Value of the Name property must be Priority or Importance.
msoConditionNotEqualToNotStarted
Status does not equal "Not Started"
Value of the Name property must be Status.
msoConditionNotEqualToWaiting
Status does not equal "Waiting for Someone Else"
Value of the Name property must be Status.
msoConditionOn
Date specified in the Name property of the PropertyTest object is the same as the date specified in the Value property of the PropertyTest object.
msoConditionOnOrAfter
Date specified in the Name property of the PropertyTest object is on or after the date specified in the Value property of the PropertyTest object.
msoConditionOnOrBefore
Date specified in the Name property of the PropertyTest object is on or before the date specified in the Value property of the PropertyTest object.
msoConditionThisMonth
Date specified in the Name property of the PropertyTest object is this month.
msoConditionThisWeek
Date specified in the Name property of the PropertyTest object is this week.
msoConditionToday
Date specified in the Name property of the PropertyTest object is today.
msoConditionTomorrow
Date specified in the Name property of the PropertyTest object is tomorrow.
msoConditionYesterday
Date specified in the Name property of the PropertyTest object is yesterday.

REMARKS
* Added in 2007.
* This enumeration does not appear in the Object Browser.

msoConnector

Specifies the connector between two similar property test values.

msoConnectorAndCombine property test values to form one property test.
msoConnectorOrTreat property test values as separate criteria.

msoConnectorAnd
Combine property test values to form one property test.
msoConnectorOr
Treat property test values as separate criteria.

REMARKS
* Added in 2007.
* This enumeration does not appear in the Object Browser.

msoFileDialogType

Specifies the type of a FileDialog object.

msoFileDialogFilePickerFile picker dialog box (3).
msoFileDialogFolderPickerFolder picker dialog box (4).
msoFileDialogOpenOpen dialog box (1).
msoFileDialogSaveAsSave As dialog box (2).

msoFileDialogFilePicker
File picker dialog box (3).
msoFileDialogFolderPicker
Folder picker dialog box (4).
msoFileDialogOpen
Open dialog box (1).
msoFileDialogSaveAs
Save As dialog box (2).

msoFileDialogView

Specifies the view presented to the user in a file dialog box.

msoFileDialogViewDetailsFiles displayed in a list with detail information.
msoFileDialogViewLargeIconsFiles displayed as large icons.
msoFileDialogViewListFiles displayed in a list without details.
msoFileDialogViewPreviewFiles displayed in a list with a preview pane showing the selected file.
msoFileDialogViewPropertiesFiles displayed in a list with a pane showing the selected file's properties.
msoFileDialogViewSmallIconsFiles displayed as small icons.
msoFileDialogViewThumbnailFiles displayed as thumbnails.
msoFileDialogViewTilesFiles displayed as tiled icons.
msoFileDialogViewWebViewFiles displayed in Web view.

msoFileDialogViewDetails
Files displayed in a list with detail information.
msoFileDialogViewLargeIcons
Files displayed as large icons.
msoFileDialogViewList
Files displayed in a list without details.
msoFileDialogViewPreview
Files displayed in a list with a preview pane showing the selected file.
msoFileDialogViewProperties
Files displayed in a list with a pane showing the selected file's properties.
msoFileDialogViewSmallIcons
Files displayed as small icons.
msoFileDialogViewThumbnail
Files displayed as thumbnails.
msoFileDialogViewTiles
Files displayed as tiled icons.
msoFileDialogViewWebView
Files displayed in Web view.

msoFileFindView

Specifies view to use for a file find process.

msoViewFileInfoView file information.
msoViewPreviewView preview of file.
msoViewSummaryInfoView summary information.

msoViewFileInfo
View file information.
msoViewPreview
View preview of file.
msoViewSummaryInfo
View summary information.

REMARKS
* Added in 2007.
* Removed in 2013.

msoFileType

Specifies a type of file.

msoFileTypeAllFilesAll files.
msoFileTypeBindersMicrosoft Binder file (*.obd).
msoFileTypeCalendarItem(Added 2002) Calendar item file (*.ics or *.vsc).
msoFileTypeContactItem(Added 2002) Contact item file (*.vcf).
msoFileTypeDatabasesDatabase file (*.mdb).
msoFileTypeDataConnectionFiles(Added 2002) Data connection file (*.mdf).
msoFileTypeDesignerFiles(Added 2002) Visual Basic Active Designer file (*.dsr).
msoFileTypeDocumentImagingFiles(Added 2002) Microsoft Document Imaging file (*.mdi).
msoFileTypeExcelWorkbooksMicrosoft Excel workbook (*.wbk).
msoFileTypeJournalItem(Added 2002) Microsoft Outlook Journal item
msoFileTypeMailItem(Added 2002) Mail item file (*.msg).
msoFileTypeNoteItem(Added 2002) Microsoft Outlook Note item.
msoFileTypeOfficeFilesFiles with any of the following extensions: *.doc, *.xls, *.ppt, *.pps, *.obd, *.mdb, *.mpd, *.dot, *.xlt, *.pot, *.obt, *.htm, or *.html.
msoFileTypeOutlookItems(Added 2002) Any Microsoft Outlook item file.
msoFileTypePhotoDrawFiles(Added 2002) PhotoDraw item file (*.mix).
msoFileTypePowerPointPresentationsPowerPoint presentation file (*.ppt), PowerPoint template file (*.pot), or PowerPoint slide show file (*.pps).
msoFileTypeProjectFiles(Added 2002) Project file (*.mpd).
msoFileTypePublisherFiles(Added 2002) Microsoft Publisher file (*.pub)
msoFileTypeTaskItem(Added 2002) Microsoft Outlook task item.
msoFileTypeTemplatesMicrosoft PowerPoint template (*.pot), Word template (*.dot), Excel template (*.xlt).
msoFileTypeVisioFiles(Added 2002) Microsoft Visio file (*.vsd).
msoFileTypeWebPages(Added 2002) HTML file (*.htm or *.html).
msoFileTypeWordDocumentsMicrosoft Word document file (*.doc).

msoFileTypeAllFiles
All files.
msoFileTypeBinders
Microsoft Binder file (*.obd).
msoFileTypeCalendarItem
(Added 2002) Calendar item file (*.ics or *.vsc).
msoFileTypeContactItem
(Added 2002) Contact item file (*.vcf).
msoFileTypeDatabases
Database file (*.mdb).
msoFileTypeDataConnectionFiles
(Added 2002) Data connection file (*.mdf).
msoFileTypeDesignerFiles
(Added 2002) Visual Basic Active Designer file (*.dsr).
msoFileTypeDocumentImagingFiles
(Added 2002) Microsoft Document Imaging file (*.mdi).
msoFileTypeExcelWorkbooks
Microsoft Excel workbook (*.wbk).
msoFileTypeJournalItem
(Added 2002) Microsoft Outlook Journal item
msoFileTypeMailItem
(Added 2002) Mail item file (*.msg).
msoFileTypeNoteItem
(Added 2002) Microsoft Outlook Note item.
msoFileTypeOfficeFiles
Files with any of the following extensions: *.doc, *.xls, *.ppt, *.pps, *.obd, *.mdb, *.mpd, *.dot, *.xlt, *.pot, *.obt, *.htm, or *.html.
msoFileTypeOutlookItems
(Added 2002) Any Microsoft Outlook item file.
msoFileTypePhotoDrawFiles
(Added 2002) PhotoDraw item file (*.mix).
msoFileTypePowerPointPresentations
PowerPoint presentation file (*.ppt), PowerPoint template file (*.pot), or PowerPoint slide show file (*.pps).
msoFileTypeProjectFiles
(Added 2002) Project file (*.mpd).
msoFileTypePublisherFiles
(Added 2002) Microsoft Publisher file (*.pub)
msoFileTypeTaskItem
(Added 2002) Microsoft Outlook task item.
msoFileTypeTemplates
Microsoft PowerPoint template (*.pot), Word template (*.dot), Excel template (*.xlt).
msoFileTypeVisioFiles
(Added 2002) Microsoft Visio file (*.vsd).
msoFileTypeWebPages
(Added 2002) HTML file (*.htm or *.html).
msoFileTypeWordDocuments
Microsoft Word document file (*.doc).

REMARKS
* Added in 2007.
* This enumeration does not appear in the Object Browser.

msoFileValidationMode

Specifies the file validation mode.

msoFileValidationDefaultValidate the file (default) (0).
msoFileValidationSkipDo not validate the file (1).

msoFileValidationDefault
Validate the file (default) (0).
msoFileValidationSkip
Do not validate the file (1).

REMARKS
* Added in 2010.

msoLastModified

Specifies the period of time to filter files by the date last modified.

msoLastModifiedAnyTimeFile last modified any time.
msoLastModifiedLastMonthFile last modified last month.
msoLastModifiedLastWeekFile last modified last week.
msoLastModifiedThisMonthFile last modified this month.
msoLastModifiedThisWeekFile last modified this week.
msoLastModifiedTodayFile last modified today.
msoLastModifiedYesterdayFile last modified yesterday.

msoLastModifiedAnyTime
File last modified any time.
msoLastModifiedLastMonth
File last modified last month.
msoLastModifiedLastWeek
File last modified last week.
msoLastModifiedThisMonth
File last modified this month.
msoLastModifiedThisWeek
File last modified this week.
msoLastModifiedToday
File last modified today.
msoLastModifiedYesterday
File last modified yesterday.

REMARKS
* Added in 2007.
* This is used with the LastModified property of the FileSearch object.
* This enumeration does not appear in the Object Browser.

msoSearchIn

Specifies the area in which the Execute method of the FileSearch object searches for files.

msoSearchInCustomSearches a custom path
Custom path is defined by the LookIn property of the FileSearch object.
msoSearchInMyComputerSearches the My Computer node.
msoSearchInMyNetworkPlacesSearches the My Network Places node.
msoSearchInOutlookSearches Microsoft Outlook folders.

msoSearchInCustom
Searches a custom path
Custom path is defined by the LookIn property of the FileSearch object.
msoSearchInMyComputer
Searches the My Computer node.
msoSearchInMyNetworkPlaces
Searches the My Network Places node.
msoSearchInOutlook
Searches Microsoft Outlook folders.


© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top