Sui Onn
April 9th, 2001, 10:37 AM
All,
Anybody out there have some idea on how to create a command button script in VB which will direct to link to the outlook public folder .
Judgey
April 9th, 2001, 11:02 AM
Hi Sui Onn,
I use the below method to open a folder in Outlook.
Public olap As New outlook.Application
Public olns As NameSpace
Public oloneap, curfolder As Object
Public olappts As outlook.MAPIFolder
Set olns = olap.GetNamespace("MAPI")
Set curfolder = olns.Folders("Public Folders").Folders("All Public Folders").Folders("UK").Folders("Sage Software Ltd")
As you can see you can use the .Folders() to drill down as far as you need.
Hope this helps.