Results 1 to 14 of 14
  1. #1
    3 Star Lounger
    Join Date
    Mar 2004
    Location
    London, Gtr London, England
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Flag using toolbar button toggle (outlook 2003)

    Edited by Leif to make link to referred post live.
    It's quite easy - just copy and past the <!t>[Post: 622,557]<!/t> from under the subject line to automatically get <post#=622,557>post 622,557</post#>!

    ~~~~~

    I found this thread, 62257, which addresses my problem perfectly, however it does not work for me, clicking the toolbar button dosent do anything. I followed Hans' instructions correctly, and wonder if things have changed over the past year? Thanks for any help. Frank.

    <post#=622,557>post 622,557</post#>

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Flag using toolbar button toggle (outlook 2003

    I assume 2003 has a similar setup to my 2000/2002 installations...

    Under Tools > Macro > Security... are macros allowed to run?

  3. #3
    3 Star Lounger
    Join Date
    Mar 2004
    Location
    London, Gtr London, England
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Flag using toolbar button toggle (outlook 2003

    Thank you, this works now - I set it to run macros and warn me of unsafe ones.
    It seems to create a different kind of flag to the one you get by using the Actions > Followup command, the background is not coloured and items do not appear in the follow up search folder. Also items already flagged in that way don't respond to the button.
    This is only a problem if/when I want to collect my flagged items into a search folder - creating a custom search folder didn't help, they don't show up their either.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Flag using toolbar button toggle (outlook 2003

    I tested the code on Outlook 2002 (aka XP), it cycles between three states: no flag, Follow up and Follow up - completed. It works on items that haven't been flagged and on items that have already been flagged.

    Perhaps someone else can test on Outlook 2003.

  5. #5
    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: Flag using toolbar button toggle (outlook 2003

    Outlook 2003 might be the first version that lets you add different colored flags. To add flag colors and perhaps get closer to what Outlook 2003 expects, try adding this additional property assignment:

    <code> itm.FlagIcon = olRedFlagIcon</code>

    Of course, choose your favorite color. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

  6. #6
    3 Star Lounger
    Join Date
    Mar 2004
    Location
    London, Gtr London, England
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Flag using toolbar button toggle (outlook 2003

    Thanks for this Jefferson, but please do tell where to add it?
    You are right, OL2003 allows me to choose any one of six colours for the flag, designate one as the default, have the tick mark for completion. When set using the 'usual' procedure, the background in the flag column is the same colour as the flag, only a lighter shade. The toggle button currently produces a red flag with a plain white bg. I don't care about the background colour, but do want to be able to find all flagged items, like a search folder should do. Thanks again Frank

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Flag using toolbar button toggle (outlook 2003

    Perhaps something like this (I can't test it myself):

    ...
    Select Case itm.FlagStatus
    Case olNoFlag
    itm.FlagStatus = olFlagMarked
    itm.FlagIcon = olRedFlagIcon
    Case olFlagMarked
    itm.FlagStatus = olFlagComplete
    itm.FlagIcon = olRedFlagIcon
    Case olFlagComplete
    itm.FlagStatus = olNoFlag
    itm.FlagIcon = olNoFlagIcon
    End Select
    ...

  8. #8
    3 Star Lounger
    Join Date
    Mar 2004
    Location
    London, Gtr London, England
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Flag using toolbar button toggle (outlook 2003

    Thanks Hans, I tested this by replacing the existing Select Case with yours.
    This now sets the red flag with a red background, but further clicks of the toggle have no effect. Opening the email and using the toggle button there causes the flag status messge at the top of the window to cycle through the three states, but this does not change the icon in the flag column of the list of messages. I still cannot make the search function pick up flags which lack a bg colour. Frank

  9. #9
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Flag using toolbar button toggle (outlook 2003

    I hope that someone with Outlook 2003 can help; I don't know how FlagStatus and FlagIcon interact, and the online documentation only provides basic information.

  10. #10
    3 Star Lounger
    Join Date
    Mar 2004
    Location
    London, Gtr London, England
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Flag using toolbar button toggle (outlook 2003

    A big thank you to all three of you, obviously a tricky one to get the teeth into. I am sure others will have wanted to do what I am looking for, so maybe someone has solved this already. I shall browse for third party add-ins etc over the weekend and see if anything turns up. Frank

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

    Re: Flag using toolbar button toggle (outlook 2003

    In a brief test with VBA, it appears to me that:

    .FlagIcon = olNoColor (or =False)

    has the effect of setting

    .FlagStatus = olNoFlag

    I'm not sure what you want by "a Search Folder which shows flags with no bg color" - looks to me like flags with no color are in effect unflagged. In other words:

    A flag with any color is olFlagMarked, and clearing the color resets the Flag to OlNoFlag, which is the same as unmarked.
    A tickmark flag is olFlagComplete, and the tickmark has only one color.
    -John ... I float in liquid gardens
    UTC -7ąDS

  12. #12
    3 Star Lounger
    Join Date
    Mar 2004
    Location
    London, Gtr London, England
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Flag using toolbar button toggle (outlook 2003

    Edited by HansV to replace attached Word doc with the image it contained - saves others a few clicks

    Hi John, thanks for this.
    Re the background colour - when setting a flag in Actions>Followup, the flag and the background of the square block become red. These items then show up in the search folder 'for follow up'. Using the original code from Hans, the flags appear in red but the square block is white, and items so flagged don't appear in the search folder. The attached picture shows the situation - two items are flagged with red (and blue) by the Actions>Followup method, and two in red by the project1 ToggelStatus method. I hope this helps people see what's happening. Thanks Frank.
    Attached Images Attached Images
    • File Type: png x.png (37.0 KB, 0 views)

  13. #13
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Flag using toolbar button toggle (outlook 2003

    I tested briefly in Outlook 2003. The flag icon and check mark are new in Outlook 2003, and support for them in VBA is incomplete. The status isn't set correctly, and there is no way - as far as I can tell - to make an item display the "Completed" check mark using VBA.
    Followup has been radically overhauled again in Outlook 2007, so I don't think the omission in Outlook 2003 will be repaired.

  14. #14
    3 Star Lounger
    Join Date
    Mar 2004
    Location
    London, Gtr London, England
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Flag using toolbar button toggle (outlook 2003

    Thank you Hans, and thanks to everyone else for your efforts. I will look at OL2007 soon no doubt.
    frank

Posting Permissions

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