A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2002 (XP) - MAPIFolder.Description - Runtime Error -2113470450



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 23rd 06, 09:07 PM posted to microsoft.public.outlook.program_vba
Johannes Harth
external usenet poster
 
Posts: 2
Default Outlook 2002 (XP) - MAPIFolder.Description - Runtime Error -2113470450

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

Ads
  #2  
Old June 27th 06, 10:32 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2002 (XP) - MAPIFolder.Description - Runtime Error -2113470450

You could use CDO to check for the presence of the PR_COMMENT property. See http://www.cdolive.com/cdo10.htm if you're not familiar with MAPI property syntax.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Johannes Harth" wrote in message ...
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

  #3  
Old June 30th 06, 09:21 PM posted to microsoft.public.outlook.program_vba
Johannes Harth
external usenet poster
 
Posts: 2
Default Outlook 2002 (XP) - MAPIFolder.Description - Runtime Error -2113470450

Thanks a lot Sue, I now have chosen a on error resume next construct to
catch that error. The reason for that is that I also would rise up an
error by reading a property via CDO without value. I could not find a
solution without rising an error.

As a result of that I now have a new question. How can I restore the
normal environment for error handling after writing the on error resume
next statement.
If any further errors would arise they just would be skipped without a
error msg. I would only like to have my application to behave so in a
few lines.

debugging would get extremely hard...

Kind regards, Johannes

Sue Mosher [MVP-Outlook] wrote:
You could use CDO to check for the presence of the PR_COMMENT property. See http://www.cdolive.com/cdo10.htm if you're not familiar with MAPI property syntax.

  #4  
Old June 30th 06, 09:34 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2002 (XP) - MAPIFolder.Description - Runtime Error -2113470450

On Error Goto 0

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Johannes Harth" wrote in message ...
Thanks a lot Sue, I now have chosen a on error resume next construct to
catch that error. The reason for that is that I also would rise up an
error by reading a property via CDO without value. I could not find a
solution without rising an error.

As a result of that I now have a new question. How can I restore the
normal environment for error handling after writing the on error resume
next statement.
If any further errors would arise they just would be skipped without a
error msg. I would only like to have my application to behave so in a
few lines.

debugging would get extremely hard...

Kind regards, Johannes

Sue Mosher [MVP-Outlook] wrote:
You could use CDO to check for the presence of the PR_COMMENT property. See http://www.cdolive.com/cdo10.htm if you're not familiar with MAPI property syntax.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom UI Runtime Error in Microsoft Access Outlook Add-in for Dat SpaceWizard Outlook - Calandaring 8 August 1st 07 12:07 AM
Can't install Office XP service pack 3 for access 2002 runtime DSerum Outlook - Installation 1 June 9th 06 06:54 AM
Outlook 2002 Runtime error ...Office 10\Outlook.exe terminates MaureenM Outlook - Installation 0 May 11th 06 04:24 AM
Runtime error in opening Outlook 2002 Ajay Bankoti Outlook - Installation 0 March 3rd 06 11:34 AM
Why do I get "Runtime Error! during Outlook Junkmail filter update JOE Outlook - Installation 0 February 18th 06 10:51 PM


All times are GMT +1. The time now is 04:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.