J
Johannes Harth
Hi
I am trying to get the Description of a Folder using the Description
Property of a MAPIFolder Object.
Every newly created Folder has no Description property set by default.
As a result of that I'll get a runtime error -2113470450. I have a
German version of outlook so i translated the error message with google
translate. So it could be possible that it sounds slightly different
then the original English message.
EN "Not sufficient main memory or system resources. Close some windows
or programs and try it again."
DE "Nicht genügend Arbeitsspeicher oder Systemressourcen. Schließen Sie
einige Fenster oder Programme und versuchen Sie es erneut."
I also figured out that the Folder has no property "PR_COMMENT" set.
Is there a way in vba to check whether a folder has a comment applied to
it or not?
here is an example code for testing:
Sub MAPIFolderTest()
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myCalendar = myNameSpace.GetDefaultFolder(olFolderCalendar)
Set myExplorer = myOlApp.ActiveExplorer
Debug.Print "Description of Default Calendar:" & _
vbTab & myCalendar.Description
Debug.Print "Description of Selected Folder:" & _
vbTab & vbTab & myExplorer.CurrentFolder.Description
End Sub
Any help greatly appreciated
Joe
I am trying to get the Description of a Folder using the Description
Property of a MAPIFolder Object.
Every newly created Folder has no Description property set by default.
As a result of that I'll get a runtime error -2113470450. I have a
German version of outlook so i translated the error message with google
translate. So it could be possible that it sounds slightly different
then the original English message.
EN "Not sufficient main memory or system resources. Close some windows
or programs and try it again."
DE "Nicht genügend Arbeitsspeicher oder Systemressourcen. Schließen Sie
einige Fenster oder Programme und versuchen Sie es erneut."
I also figured out that the Folder has no property "PR_COMMENT" set.
Is there a way in vba to check whether a folder has a comment applied to
it or not?
here is an example code for testing:
Sub MAPIFolderTest()
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myCalendar = myNameSpace.GetDefaultFolder(olFolderCalendar)
Set myExplorer = myOlApp.ActiveExplorer
Debug.Print "Description of Default Calendar:" & _
vbTab & myCalendar.Description
Debug.Print "Description of Selected Folder:" & _
vbTab & vbTab & myExplorer.CurrentFolder.Description
End Sub
Any help greatly appreciated
Joe