Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8321879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:10:38+00:00 2026-06-08T23:10:38+00:00

We have a ticket system that sends us tickets with the title "New Ticket

  • 0

We have a ticket system that sends us tickets with the title "New Ticket Created: T20120803.0078" where the number is generated.

We reply to all saying we are working on the ticket. The reply title looks like this "RE: New Ticket Created: T20120803.0078".

My Outlook is set up to forward all tickets into one folder called "Tickets".

I am trying to figure out how when the email is replied to, it sends both the reply and the original to another folder called "InProgress".

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:10:40+00:00Added an answer on June 8, 2026 at 11:10 pm

    don't have a lot of time to figure this one out.

    Typically, at this sight we don’t build code for people, but help them build the tweak or perfect code where they are struggling.

    That said, I was intrigued by your question and wanted to learn myself, so I put something together for you. This should get you a great start, if it’s not already exactly what you need.

    UPDATE:

    You don’t even need VBA for the first part. You can set up a rule to move all sent messages with "RE: New Ticket Created" in the subject line to the In Progress folder. Therefore, you don’t even need the whole first IfF Then End If block in the code below. (I’ve left it for reference, purposes).

    CODE

    All assumptions based on the settings you provided.

    Place the code in the Application_ItemSend event of ThisOutlookSession object in Outlook VBE.

    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
    
    Dim olNameSpace As Outlook.NameSpace
    Set olNameSpace = GetNamespace("MAPI")
    
    Dim olDestFolder As Outlook.Folder
    Set olDestFolder = olNameSpace.Folders("myMailbox@myCompany.com").Folders("In Progress")
    
    
    If TypeName(Item) = "MailItem" Then 'if it's a mail item being sent
    
        Dim olMailCopy As Outlook.MailItem
        Set olMailCopy = Item.Copy 'copy the item so we can move it and still have it send
    
        If InStr(1, olMailCopy.Subject, "New Ticket Created") > 0 Then '
    
            olMailCopy.Move olDestFolder ' move copy of mail to folder
    
            Dim strTicket As String
            strTicket = Mid(olMailCopy.Subject, InStrRev(olMailCopy.Subject, ": ") + 2) 'just grab ticket id
    
        End If
    
    End If
    
    
    Dim olLookUpFolder As Outlook.Folder
    Set olLookUpFolder = olNameSpace.Folders("myMailbox@myCompany.com").Folders("Tickets")
    
    Dim olMail As Outlook.MailItem
    
    For Each olMail In olLookUpFolder.Items 'loop through Tickets folder to find original mail
    
        If InStr(1, olMail.Subject, strTicket) > 0 Then 'look for unique ticket Id
    
            olMail.Move olDestFolder ' move to InProgress folder
    
            Exit For
    
        End If
    
    Next
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, so i have created a new support ticket system, but in my ticket
Here is my problem. I have a ticket-tracking system that is not very 'user
I'm writing a ticket-shop-system atm for reserving tickets for various concerts. What I have
I have a ticket system. Messages are placed in a div and that div
I have a Ticket class that contains a List of User objects: class Ticket
I have a table called ticket , and it has a field called number
I have a website where users can purchase tickets, but ticket quantities are usually
I am looking for an open source ticket system that I can use with
I want to create a small helpdesk ticket control system at work, that would
I have a database that looks like this: ID parent ticket category _record_status _log_user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.