You can only use GetSharedDefaultFolder to return default folders from another mailbox. To get subfolders, you need to walk the folder hierarchy, starting with the top-level of the mailbox. You can use the original GetFolder() function, from which you apparently developed the function below.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
>I tried using the following code to access custom subfolders in another
> users shared mailbox
[quoted text clipped - 38 lines]
> Set objApp = Nothing
> End Function
jack - 27 May 2005 07:18 GMT
I got it working by using the GetFolder function and using the full folder
heirarchy
eg to access the folder Folder/SubFolder in mailbox Sales Dept, used the
following GetFolder("mailbox - Sales Dept/Folder/SubFolder")
needed the "mailbox - " in front of the mailbox user name for it to work
thanx, jack
You can only use GetSharedDefaultFolder to return default folders from
another mailbox. To get subfolders, you need to walk the folder hierarchy,
starting with the top-level of the mailbox. You can use the original
GetFolder() function, from which you apparently developed the function
below.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
>I tried using the following code to access custom subfolders in another
> users shared mailbox
[quoted text clipped - 40 lines]
> Set objApp = Nothing
> End Function