命名空间 PickFolder 方法 (Outlook)NameSpace.PickFolder method (Outlook)

显示 "选择文件夹" 对话框。Displays the Pick Folder dialog box.

语法Syntax

expressionexpression. PickFolder

_表达式_一个代表NameSpace对象的变量。expression A variable that represents a NameSpace object.

返回值Return value

一个代表用户在对话框中选择的文件夹的**folder** 对象, 如果用户取消了对话框, 则不执行任何操作A Folder object that represents the folder that the user selects in the dialog box, or Nothing if the dialog box is canceled by the user.

说明Remarks

"选择文件夹" 对话框是一个模式对话框, 这意味着在用户选择一个文件夹或取消对话框之前, 不会继续执行代码。The Pick Folder dialog box is a modal dialog box which means that code execution will not continue until the user either selects a folder or cancels the dialog box.

另请参阅See also

命名空间对象NameSpace Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.