Avatar of Ot_Gu
Ot_Gu
 asked on

How do I achieve auto reply with numbering in Outlook Please help!!

Hello All
Sorry this is my first question on this board. i commented on another question but thought it better to ask here instead.
scenario:
i know little or nothing about VB script :(
but i have been looking for this solution for a while :) Message auto-numbering in Outlook
i am using Microsoft outlook 2010 on windows 7.
could you tell me what i need to do to implement this code or guide me to literature that would help??
i want to auto reply to every email sent to a specific email account with a some default text plus a consecutive number in the subject and some default text and the same number in the message.
any help would be much appreciated.
thanks in advance
OutlookMicrosoft Applications

Avatar of undefined
Last Comment
David Lee

8/22/2022 - Mon
Ot_Gu

ASKER
Hello again, i guess i know what i want to do a bit more now.
I want to create a rule which applies to all mail received through the specified account, then run a script. I found the below code elsewhere in the forum, which is on the way to my solution, in that this would create the reply with my subject & text. So i just need to include the auto numbering now with your help.

thanks//Ot_Gu

Sub AutoReply(Item As Outlook.MailItem)
    Dim olkReply As Outlook.MailItem
    Set olkReply = Item.Reply
    With olkReply
        'Change the subject on the next line as desired'
        .Subject = Item.Subject
        'Change the body as desired'
        .HTMLBody = "Your reply text goes here.<bt><br>" & olkReply.HTMLBody
        .Send
    End With
    Set olkReply = Nothing
End Sub
David Lee

Hi, Ot_Gu.

That looks like something I wrote.  Do you need the consecutive numbers to continue across sessions, or do you want them just within the current session?
Ot_Gu

ASKER
Morning, BlueDevilFan, apologies for belated reply.

By "sessions" I assume you refer to each time I start Outlook? If so then yes; I require the numbers to continue across sessions. Incidentally the numbering needs to start at 5700.
Thanks for your help.
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
David Lee

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Ot_Gu

ASKER
Many, Many thanks.
That worked first time. I think I am comfortable with editing the autoreply sub to get it looking how i want so that is really good.
Thanks again and have a good weekend BlueDevilFan.
//:) Ot_GU
David Lee

Thanks and you're welcome!