Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Feb 2001
    Location
    Portland, Maine, USA
    Posts
    296
    Thanks
    0
    Thanked 0 Times in 0 Posts

    'Not Junk' (Outlook 2003)

    There is a "Not Junk" button on the standard toolbar when the junk mail folder is selected. When is the underlying Outlook command that relates to this? I am modifying some toolbar buttons via code (replacing buttons from an older Spam filtering program) and want to assign the Not Junk (white list) function to the old buttons. So what is the OnAction = ""??

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: 'Not Junk' (Outlook 2003)

    My vague recollection is that you might not get a .Parameter or .OnAction for a built-in command. But you can .Execute the control using its .ID value.

  3. #3
    3 Star Lounger
    Join Date
    Feb 2001
    Location
    Portland, Maine, USA
    Posts
    296
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: 'Not Junk' (Outlook 2003)

    I can't remember how to determine it's ID value.

  4. #4
    3 Star Lounger
    Join Date
    Feb 2001
    Location
    Portland, Maine, USA
    Posts
    296
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: 'Not Junk' (Outlook 2003)

    I used the "Outlook Spy" add-in suggested by Sue Mosher and found the ID I needed. This added the button where I wanted it!

    Set objcontrol = objControls.Add(msoControlButton, 9652, , 9)

  5. #5
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: 'Not Junk' (Outlook 2003)

    <P ID="edit" class=small>(Edited by JohnBF on 23-Jul-04 10:41. Improvements, probably still needs work, but gets me what I need.)</P>Darryl, this unfinished, but should get you the primary menu dialogs, or get you started on them. Outlook menus are context sensitive and the return from the code will vary according to the folder type and view of the active window.
    -John ... I float in liquid gardens
    UTC -7ąDS

Posting Permissions

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