CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Posts
    1

    command Button to Outlook public folder

    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 .


  2. #2
    Join Date
    Mar 2001
    Location
    County Durham, England
    Posts
    238

    Re: command Button to Outlook public folder

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured