Reply to all Help needed badly

  • Thread starter Thread starter gbirdsong@gmail.com
  • Start date Start date
Status
Not open for further replies.
G

gbirdsong@gmail.com

I know nothing about VBA in outlook but I need to create a macro. I

need to be able to highlight an email in my inbox and start the macro

which will reply to all for the highlighted email with a simple

message like "got it". How do I do this? Is there another way

besides a macro?

thanks
 
Sub DoReply()

Dim itm as Object

Dim reply as Outlook.MailItem

On Error Resume Next

Set itm = Application.ActiveExplorer.Selection(1)

If itm.Class = olMail Then

Set reply = itm.ReplyAll

reply.Body = "Got it" & vbCrLf & vbCrLf & reply.Body

reply.Send

End If

Set itm = Nothing

Set reply = Nothing

End Sub

If you need basics on writing Outlook macros, see

http://outlookcode.com/article.aspx?id=49.

Sue Mosher

<gbirdsong@gmail.com> wrote in message

news:c21d07b9-182b-4807-b051-cf765bc13cbc@f18g2000vbf.googlegroups.com...
> I know nothing about VBA in outlook but I need to create a macro. I
> need to be able to highlight an email in my inbox and start the macro
> which will reply to all for the highlighted email with a simple
> message like "got it". How do I do this? Is there another way
> besides a macro?

> thanks
 
On Apr 8, 2:29 pm, "Sue Mosher [MVP]" <sue...@turtleflock.com> wrote:
> Sub DoReply()
>     Dim itm as Object
>     Dim reply as Outlook.MailItem
>     On Error Resume Next

>     Set itm = Application.ActiveExplorer.Selection(1)
>     If itm.Class = olMail Then
>         Set reply = itm.ReplyAll
>         reply.Body = "Got it" & vbCrLf & vbCrLf & reply.Body
>         reply.Send
>     End If

>     Set itm = Nothing
>     Set reply = Nothing
> End Sub

> If you need basics on writing Outlook macros, seehttp://outlookcode.com/article.aspx?id=49.
> > Sue Mosher


that works great. thanks.

I will check out that site also.


>    



>      >    
> <gbirds...@gmail.com> wrote in message

> news:c21d07b9-182b-4807-b051-cf765bc13cbc@f18g2000vbf.googlegroups.com...
>
> >I know nothing about VBA in outlook but I need to create a macro.  I
> > need to be able to highlight an email in my inbox and start the macro
> > which will reply to all for the highlighted email with a simple
> > message like "got it".  How do I do this?  Is there another way
> > besides a macro?

>
> > thanks
 
Is it possible to maintain the formatting of the original email in the

reply? The reply I am producing loses the spacing, text size, and

border lines from the original.

thanks

On Apr 8, 3:57 pm, gbirds...@gmail.com wrote:
> On Apr 8, 2:29 pm, "Sue Mosher [MVP]" <sue...@turtleflock.com> wrote:
>
> > Sub DoReply()
> >     Dim itm as Object
> >     Dim reply as Outlook.MailItem
> >     On Error Resume Next

>
> >     Set itm = Application.ActiveExplorer.Selection(1)
> >     If itm.Class = olMail Then
> >         Set reply = itm.ReplyAll
> >         reply.Body = "Got it" & vbCrLf & vbCrLf & reply.Body
> >         reply.Send
> >     End If

>
> >     Set itm = Nothing
> >     Set reply = Nothing
> > End Sub

>
> > If you need basics on writing Outlook macros, seehttp://outlookcode.com/article.aspx?id=49.
> > > > Sue Mosher


> that works great.  thanks.
> I will check out that site also.
>
> >    > >      > >    

>
> > <gbirds...@gmail.com> wrote in message

>
> >news:c21d07b9-182b-4807-b051-cf765bc13cbc@f18g2000vbf.googlegroups.com....

>
> > >I know nothing about VBA in outlook but I need to create a macro.  I
> > > need to be able to highlight an email in my inbox and start the macro
> > > which will reply to all for the highlighted email with a simple
> > > message like "got it".  How do I do this?  Is there another way
> > > besides a macro?

>
> > > thanks
 
The Body property contains only the plain text representation of the item

body. If you want formatting, you need to work with HTMLBody and proper HTML

tags (instead of constants like vbCrLf).

Sue Mosher

<gbirdsong@gmail.com> wrote in message

news:76786a1d-92e6-43da-ba7f-8619945557bf@h28g2000yqd.googlegroups.com...

Is it possible to maintain the formatting of the original email in the

reply? The reply I am producing loses the spacing, text size, and

border lines from the original.

thanks

On Apr 8, 3:57 pm, gbirds...@gmail.com wrote:
> On Apr 8, 2:29 pm, "Sue Mosher [MVP]" <sue...@turtleflock.com> wrote:
>
> > Sub DoReply()
> > Dim itm as Object
> > Dim reply as Outlook.MailItem
> > On Error Resume Next

>
> > Set itm = Application.ActiveExplorer.Selection(1)
> > If itm.Class = olMail Then
> > Set reply = itm.ReplyAll
> > reply.Body = "Got it" & vbCrLf & vbCrLf & reply.Body
> > reply.Send
> > End If

>
> > Set itm = Nothing
> > Set reply = Nothing
> > End Sub


>
> > <gbirds...@gmail.com> wrote in message

>
> >news:c21d07b9-182b-4807-b051-cf765bc13cbc@f18g2000vbf.googlegroups.com...

>
> > >I know nothing about VBA in outlook but I need to create a macro. I
> > > need to be able to highlight an email in my inbox and start the macro
> > > which will reply to all for the highlighted email with a simple
> > > message like "got it". How do I do this? Is there another way
> > > besides a macro?

>
> > > thanks
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
broadbander Needing help with reply/reply all while keeping attachments and adding a new CC recipient. Outlook VBA and Custom Forms 5
P Automatically 'Reply to all', and Change the Subject of Email - Diane P help! Using Outlook 0
S Outlook 2003: Help with setting up a macro to reply to selected emails Using Outlook 2
L Send reply when email is sent HELP! Outlook VBA and Custom Forms 2
G Reply a selected message and remove blank space before signature Outlook 365 version 2406 64BIT Outlook VBA and Custom Forms 2
G Reply a selected message and remove blank space before signature Outlook 365 version 2406 64BIT Outlook VBA and Custom Forms 0
T In-line reply style in Outlook II Outlook VBA and Custom Forms 1
M Simple Reply, Reply All, Forward Outlook VBA and Custom Forms 1
N Reply to Outlook messages by moving messages to a specific Outlook folder Outlook VBA and Custom Forms 1
J Macro to Reply to Emails w/ Template Outlook VBA and Custom Forms 3
J Quick steps delete original email and move reply/sent email to folder Using Outlook 2
nmanikrishnan Auto-reply from default account Using Outlook 1
P Automatic Greeting "Hello Name," when Reply All is clicked Outlook VBA and Custom Forms 1
N Line to move origEmail to subfolder within a reply macro Outlook VBA and Custom Forms 0
A Outlook 2016 Macro to Reply, ReplyAll, or Forward(but with composing new email) Outlook VBA and Custom Forms 0
S How to find emails that I sent that have not received a reply? Using Outlook 7
T Macro to move reply and original message to folder Outlook VBA and Custom Forms 6
A Is there an ID field you can use to pair a reply to the sent email? Outlook VBA and Custom Forms 4
W Reply to email Using Outlook 4
A Edit attachment Save and Reply Outlook VBA and Custom Forms 0
L Macro/VBA to Reply All, with the original attachments Outlook VBA and Custom Forms 2
S Outlook Macro to move reply mail based on the key word in the subjectline Outlook VBA and Custom Forms 0
diver864 vba for a rule to automatically accept meeting requests with 'vacation' in subject, change to all-day event, change to free, don't send reply Outlook VBA and Custom Forms 1
B Adding signature to bottom of VBA reply email Outlook VBA and Custom Forms 1
C UDFs Reply vs Forward Outlook VBA and Custom Forms 3
ThinkToday Calculate reply time of outlook mail Using Outlook 1
W Replyin to the reply-to email address Outlook VBA and Custom Forms 0
D Reply with a template loose the sender's embedded image Outlook VBA and Custom Forms 0
R List folders in a combo box + select folder + move emails from inbox to that folder + reply to that email Outlook VBA and Custom Forms 1
J Outlook Reply > From > Other Email Address... > Address Not Showing in Sent Items... From Email Outlook VBA and Custom Forms 0
M Delete headers in Inline reply Outlook VBA and Custom Forms 5
E reply Using Outlook 0
Healy Consultants Macro to remove inside organization distribution list email address when reply to all recepients Outlook VBA and Custom Forms 0
B resend if no reply and send an automatic reminder Outlook VBA and Custom Forms 0
evdbogaard Reply with only last message cited Using Outlook 1
B Reply and replyall macro is not working Outlook VBA and Custom Forms 1
mctabish Setting "Reply To" based on inbox Outlook VBA and Custom Forms 2
Rupert Dragwater Deleted email address keeps showing up in reply Using Outlook 12
B When working on emails in a certain folder, when I hit reply or reply all, I would like it re always reply all and add an email address to send to Outlook VBA and Custom Forms 3
R How Do I insert images in and Auto Reply Using Outlook 3
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
M Reply Inline With a Outlook Template Outlook VBA and Custom Forms 6
O On click,I want to change subject line of selected mail and then reply to particular email and move Using Outlook 3
J VBA Run When Reply Outlook VBA and Custom Forms 4
D Font in Reply is much larger than normal, how to reset ...? Using Outlook 4
K add pdf to every reply or forward Outlook VBA and Custom Forms 1
A VB to "reply all" email items stored in a folder of outlook with adding a new message Outlook VBA and Custom Forms 0
K Extract email address from body and auto-reply outlook Using Outlook 1
T In-line reply style in Outlook Outlook VBA and Custom Forms 20
Vijay Reply all by attachment name Using Outlook 10

Similar threads

Back
Top