The code below is for working with folders in Outlook. Your .msg items are
not in Outlook folders but in system file folders. Therefore, you need to be
using the FileSystemObject library (see
http://www.outlookcode.com/d/vbscript.htm for links to tutorial and other
resources) or the file-handling features in the core VBA library.
But if you already have the file path and file name, why are you even
worrying about the folder? You already have all the information available.
To open a file whose name is displayed in a list box, you would need to
write code for the list box's DblClick event to do something with the file
path+filename. If you can't use WSH, then you'd have to use Outlook's
Application.CreateItemFromTemplate method, which may not be satisfactory, as
it creates a copy of the original .msg file.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers