G
Guest
I am having outlook give me an error everytime I try to get any default
folder. It just gives out and says the operation failed. It will work
sometimes, but not others. It usually breaks on the service account that
runs it through SQL server. Please let me know what I am doing wrong.
Thanks.
Dim MainFolder As outlook.MAPIFolder
Dim objtargetFolders(Num) As outlook.MAPIFolder
Dim NS As NameSpace
Set NS = outlook.Application.GetNamespace("MAPI")
Set MainFolder = NS.GetDefaultFolder(olPublicFoldersAllPublicFolders)
folder. It just gives out and says the operation failed. It will work
sometimes, but not others. It usually breaks on the service account that
runs it through SQL server. Please let me know what I am doing wrong.
Thanks.
Dim MainFolder As outlook.MAPIFolder
Dim objtargetFolders(Num) As outlook.MAPIFolder
Dim NS As NameSpace
Set NS = outlook.Application.GetNamespace("MAPI")
Set MainFolder = NS.GetDefaultFolder(olPublicFoldersAllPublicFolders)