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
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
T Macro to move reply and original message to folder Outlook VBA and Custom Forms 6
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
V Macro to mark email with a Category Outlook VBA and Custom Forms 3
M Outlook 2019 Macro not working Outlook VBA and Custom Forms 0
S Outlook 365 Help me create a Macro to make some received emails into tasks? Outlook VBA and Custom Forms 1
Geldner Send / Receive a particular group via macro or single keypress Using Outlook 1
D Auto Remove [EXTERNAL] from subject - Issue with Macro Using Outlook 17
V Macro to count flagged messages? Using Outlook 2
sophievldn Looking for a macro that moves completed items from subfolders to other subfolder Outlook VBA and Custom Forms 7
S Outlook Macro for [Date][Subject] Using Outlook 1
E Outlook - Macro - send list of Tasks which are not finished Outlook VBA and Custom Forms 3
E Macro to block senders domain Outlook VBA and Custom Forms 1
D VBA Macro to Print and Save email to network location Outlook VBA and Custom Forms 1
N VBA Macro To Save Emails Outlook VBA and Custom Forms 1
witzker Outlook 2019 Macro to answer a mail with attachments Outlook VBA and Custom Forms 2
J Macro to Insert a Calendar Outlook VBA and Custom Forms 8
W Macro to Filter Based on Latest Email Outlook VBA and Custom Forms 6
D Autosort macro for items in a view Outlook VBA and Custom Forms 2
S HTML to Plain Text Macro - Help Outlook VBA and Custom Forms 1
A Macro to file emails into subfolder based on subject line Outlook VBA and Custom Forms 1
N Help creating a VBA macro with conditional formatting to change the font color of all external emails to red Outlook VBA and Custom Forms 5
S Visual indicator of a certain property or to show a macro toggle Outlook VBA and Custom Forms 2
L Modifying VBA script to delay running macro Outlook VBA and Custom Forms 3
S Macro to extract and modify links from emails Outlook VBA and Custom Forms 3
M Replyall macro with template and auto insert receptens Outlook VBA and Custom Forms 1
L Macro to add Date & Time etc to "drag to save" e-mails Outlook VBA and Custom Forms 17
S Macro for Loop through outlook unread emails Outlook VBA and Custom Forms 2
Globalforester ItemAdd Macro - multiple emails Outlook VBA and Custom Forms 3
S Macro to extract email addresses of recipients in current drafted email and put into clipboard Outlook VBA and Custom Forms 2
witzker HowTo start a macro with an Button in OL contact form Outlook VBA and Custom Forms 12
witzker Macro to move @domain.xx of a Spammail to Blacklist in Outlook 2019 Outlook VBA and Custom Forms 7
S Macro for other actions - Outlook 2007 Outlook VBA and Custom Forms 23
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

Similar threads

Top