篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript ol Folderpath相关的知识,希望对你有一定的参考价值。
Sub Folderpaths()
Dim olApp As Outlook.Application
Dim nmsName As Namespace
Dim fldFolder As MAPIFolder
Set olApp = Outlook.Application
'Create namespace reference
Set nmsName = olApp.GetNamespace("MAPI")
'create folder instance
Set fldFolder = nmsName.GetDefaultFolder(olFolderInbox)
'call sub program
Call FolderInfo(fldFolder)
End Sub
Function FolderInfo(fldFolder)
'Displays information about a given folder
MsgBox fldFolder.Name & "'s current path is " & fldFolder.FolderPath & _
". The current address book name is " & fldFolder.AddressBookName & "."
End Function
以上是关于vbscript ol Folderpath的主要内容,如果未能解决你的问题,请参考以下文章