返回检查器中显示的当前项目,Object 类型。
注意 如果当前没有打开的项目,则返回一条出错信息。
expression.CurrentItem
expression 必选。该表达式返回 Inspector 对象。
本 Visual Basic for Applications 示例使用 CurrentItem 属性获得用户正在查看的当前项目。如果当前没有打开的项目,则返回一条出错信息。
Set myOlApp = CreateObject("Outlook.Application")
On Error Resume Next
Set myItem = myOlApp.ActiveInspector.CurrentItem