View Single Post
  #2  
Old January 13th 06, 06:40 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Userproperties in Folder

Am Thu, 12 Jan 2006 10:08:02 -0800 schrieb MClaudio:

Thatīs the way. If an error occurs than you know that the property doesnīt
exist for that object.

A method for "outsourcing" the error is to move the lines in a separate
function.

Private Function GetProperty(colProps as UserProperties, _
sName as String _
) as UserProperty
On Error Resume Next
Set GetProperty=colProps(sName)
End Function

If the function returns Nothing then the prop doesnīt exist, and the error
will be ignored.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook



Hi,

When i read an userproperties that created only in folder an error occur.
how can i read these properties ?

Thanks

Ads