Macro for Reply All in 2013 Outlook

Status
Not open for further replies.

Smv622

Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
I am looking for assistance in a macro for reply all in Outlook 2013. Our company has disabled the reply all function as a deterrent for reply all errors, but my position requires that I communicate with many individuals several times a day and it is very inefficient and several individuals are accidentally omitted from communications.

I had previously used the following in 2010 with no issue, but it doesn't seem to work in 2013. Any suggestions or alternates would be greatly appreciated.


Public Sub ReallyReplyAll()
Dim o As MailItem
Set o = Application.ActiveExplorer.Selection.Item(1)
o.ReplyAll.Display
End Sub
 

Smv622

Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
Does not function as it did in Outlook 2010.

I utilized the macro, added a custom button in the tool bar in 2010. Clicked on an email and hit the button - it worked fine. In 2013, I followed the same process. Click the button and nothing happens. No error.
 

Smv622

Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
Trust center/Macros: notifications for all macros is selected. Not sure if that is what you mean by executed.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
If you select a message and run the macro from the editor, does it work? There is nothing wrong with the macro. Are you notified when you restart outlook? You need to allow macros everytime you start outlook, or self sign it and change the setting to always run signed and trusted macros.
 

Smv622

Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
When I run the macro from the editor, I actually get an activity! But it's an error message: Object variable or with block variable not set.

Also - in Office 2013, the Digital Cert for VBA tool is not present so I am not sure how to make a self-signed cert without it..

Suggestions?
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
selfcert is in C:\Program Files\Microsoft Office 15\root\office15 - or in the same path under x86 program files.

Is anything in this macro highlighted in yellow? Do you have other macros? It's possible the error is in another macro - all macros can be checked when you run one, depending on the type of macro they are.
 

Smv622

Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
Nothing is highlighted in yellow. No other macros. I found the selfcert and applied it as well. Still receiving the error.

Thank you all for your patience. I am sure that I am missing something silly...
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
It's this exact macro? There are no quotes to be in the wrong format... there is really nothing that can be wrong in it. It's meant for selected messages, not opened ones.

Code:
Public Sub ReallyReplyAll()
Dim o As MailItem
Set o = Application.ActiveExplorer.Selection.Item(1)
o.ReplyAll.Display
End Sub
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
The error means that either o is nothing, or o.ReplyAll returns nothing. This will clarify it, paste it after setting the o variable:
Code:
if o is nothing then
  msgbox "no selection"
else
  dim r as MailItem
  set r=o.ReplyAll
  if r is nothing then
    msgbox "seems ol 2013 doesn't ignore your company settings anymore"
  else
     r.Display
  endif
endif
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
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
Healy Consultants Macro to remove inside organization distribution list email address when reply to all recepients Outlook VBA and Custom Forms 0
B Reply and replyall macro is not working Outlook VBA and Custom Forms 1
H send reminder if no reply received on first or original email using macro Using Outlook 2
S Outlook Macro Reply to a message Outlook VBA and Custom Forms 1
reza Macro to automatic reply using orignal mail Outlook VBA and Custom Forms 10
B Auto reply using macro include original email Using Outlook 4
L Outlook 2007 Macro Reply to E-mail Using Outlook 16
M Reply Macro using O365 Connected Account Using Outlook 2
A Macro in Outlook for auto-reply Using Outlook 3
S Outlook 2003: Help with setting up a macro to reply to selected emails Using Outlook 2
M Auto-reply with macro whether logged in to outlook or not Outlook VBA and Custom Forms 2
witzker Macro to move @domain.xx of a Spammail to Blacklist in Outlook 2019 Outlook VBA and Custom Forms 4
S Macro for other actions - Outlook 2007 Outlook VBA and Custom Forms 18
C Macro to extract sender name & subject line of incoming emails to single txt file Outlook VBA and Custom Forms 3
S Macro to move “Re:” & “FWD:” email recieved the shared inbox to a subfolder in outlook Outlook VBA and Custom Forms 0
S Outlook Macro to send auto acknowledge mail only to new mails received to a specific shared inbox Outlook VBA and Custom Forms 0
Eike Move mails via macro triggered by the click of a button? Outlook VBA and Custom Forms 0
S Macro or plug-in to see if specific person was included in this email Outlook VBA and Custom Forms 3
U Macro for reminders,tasks,calendar Outlook VBA and Custom Forms 4
V macro runs slower on startup than after Outlook VBA and Custom Forms 3
N Macro to move all recipients to CC while replying Outlook VBA and Custom Forms 0
A VBA macro for 15 second loop in send and received just for 1 specific mailbox Outlook VBA and Custom Forms 1
G VBA Macro Calendar Printing Assistant 4
R Help Revising VBA macro to delete email over different time span Outlook VBA and Custom Forms 0
M Outlook macro to automate search and forward process Outlook VBA and Custom Forms 6
R Macro Schedule every day in Outlook Using Outlook 0
L Moving emails with similar subject and find the timings between the emails using outlook VBA macro Outlook VBA and Custom Forms 1
geofferyh Cannot get Macro to SAVE more than one message attachment??? Outlook VBA and Custom Forms 5
N How can I increase/faster outlook VBA Macro Speed ? Using Outlook 2
4 Macro to set the category of Deleted Item? Outlook VBA and Custom Forms 2
D.Moore Folder view settings by VBA macro Outlook VBA and Custom Forms 57
A Outlook macro to create search folder with mail categories as criteria Outlook VBA and Custom Forms 3
Dave A Run macro on existing appointment when it changes Outlook VBA and Custom Forms 1
V Outlook Macro to show Flagged messages Outlook VBA and Custom Forms 2
O Run macro automatically at sending an email Using Outlook 11
R Retain Original Message When Forwarding With Macro Outlook VBA and Custom Forms 3
C Macro to add multiple recipients to message Outlook VBA and Custom Forms 3
O Macro - paste as plain text Outlook VBA and Custom Forms 2
J Help Please!!! Outlook 2016 - VBA Macro for replying with attachment in meeting invite Outlook VBA and Custom Forms 9
witzker Macro to set contact reminder to next day 9:00 Outlook VBA and Custom Forms 45
M Adding Macro to populate "to" "subject" "body" not deleting email string below. Outlook VBA and Custom Forms 5
E Copying data from e-mail attachement to EXCEL file via macro Outlook VBA and Custom Forms 38
M Macro to add date/time stamp to subject Outlook VBA and Custom Forms 4
R VBA macro - new message Outlook VBA and Custom Forms 3
S Example VBA Macro - To Conditionally Change the From Account and Add a BCC Address on Emails Outlook VBA and Custom Forms 11
S Macro using .SendUsingAccount only works the first time, after starting Outlook Outlook VBA and Custom Forms 4
S VBA Macro - Run-time error '424': object required - Help Please Outlook VBA and Custom Forms 3
B VBA Macro for assigning multiple Categories to an email in my Inbox Outlook VBA and Custom Forms 1

Similar threads

Top