Results 1 to 5 of 5

Thread: wait until all macros are finished

  1. #1
    Member
    Join Date
    Dec 10
    Posts
    57

    wait until all macros are finished

    I have a few 'If/Then' statements in my 'thisoutlooksession'. The issue seems to be that because I get tons of email, that sometimes I will get two or more emails at a time that trigger that macro. So, I assume it tries to run the same macro twice at the same time. Any way to run that macro once and not run it again until it is finished? Or is what I'm explaining even a problem?

  2. #2
    Super Moderator koolsid's Avatar
    Join Date
    Feb 05
    Location
    Mumbai, India
    Posts
    11,415

    Re: wait until all macros are finished

    Yes this is a problem if you macro takes long time to finish. Outlook will process the macro as soon as the emails come it. Can you show us how are you triggering the macro and what does the macro contain? We might be able to suggest a solution.
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ

    MyGear:
    Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011

  3. #3
    Member
    Join Date
    Dec 10
    Posts
    57

    Re: wait until all macros are finished

    Essentially its as simple as:

    If subject contains 'one' Then
    (do stuff)
    End If

    If subject contains 'two' Then
    (do stuff)
    End If

    The issue is, if I get two emails in one send/receive, one email containing 'one' and another containing 'two', then (I would assume) the same macro would try and run twice. Any way to fix this situation?

  4. #4
    Super Moderator koolsid's Avatar
    Join Date
    Feb 05
    Location
    Mumbai, India
    Posts
    11,415

    Re: wait until all macros are finished

    The best way to handle this by creating 2 rules and pointing them towards two different macros
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ

    MyGear:
    Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011

  5. #5
    New Member
    Join Date
    Jul 12
    Posts
    7

    Re: wait until all macros are finished

    IT would be goot to have this 2 columns

    -Subject
    -Recieved
    -Read

    First you count how many Subject one you have with mark that they are not still opened.
    After that you tell him to run macro and apply it on the the mail that contains in subject "one" but, is is znread, and has been recieved first.

Posting Permissions

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