+ Reply to Thread
Results 1 to 3 of 3

FolderChange Event

  1. #1
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    FolderChange Event

    Hi,

    I would like to use this event that I found in "http://msdn.microsoft.com/en-us/libr...ffice.12).aspx" web page. They say that:

    "The sample code must be placed in a class module, and the Initialize_handler routine must be called before the event procedure can be called by Microsoft Outlook."

    I really do not undestand where I have to put the code!

    Please Login or Register  to view this content.

    A hint would be fine.

    Regards,
    Elio Fernandes

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: FolderChange Event

    Hello


    Try this one:
    Open Outlook---
    1. Click File --> Option
    2. Look for Customized Ribbon --> then clcik the box in Developer (left window pane)
    Ok.

    you'll notice the Developer menu
    1.Click the VBA Icon on the left side of the screen Under File menu.
    2. Next will be the vba window-->click insert then choose Module
    a small window will appear paste your code there.
    First code
    Please Login or Register  to view this content.
    Next double click the Microsoft Outlook Object( a folder - left side of screen)
    Then click the Theoutlooksession file
    again a window will appear
    paste the second code there

    Please Login or Register  to view this content.

    then close the main window of VBA.
    Last edited by vlady; 11-07-2011 at 10:11 PM.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Re: FolderChange Event

    Hi,

    I did what you told me, but if I put the first part of the code on a module, the 'dim' sentence turns red so I put this code on a 'class module'. The 2nd part I put it on the 'outlooksession'.

    1) How can I try this code?

    2) what do they mean with "....and the Initialize_handler routine must be called before the event procedure can be called by Microsoft Outlook."?

    Regards,
    Elio Fernandes

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1