View Single Post
  #2  
Old March 8th 06, 08:58 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to define a folder object given its pathname

To get a non-default folder, you need to walk the folder hierarchy using the Folders collections or use a function that does that for you. See http://www.outlookcode.com/d/code/getfolder.htm and, especially for public folders, http://www.outlookcode.com/codedetail.aspx?id=1164
--
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


"jimboluke" wrote in message ...
How do I set a folder object to a folder from only its pathname?

I am trying to make a simple brute force routine for moving folders based on
a message box input. At first (not a good programmer), I am defining a set
of hard-coded folders (e.g. within a personal PST) based on the message box.
Trouble is reflecting my ignorance, I don't know how to simply create a
folder object based only on a pathname (e.g. \\A000\00). If I COULD do this,
then I could invoke a .Move method pretty simply.

Ads