Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-15-2018, 07:59 PM
gmayor's Avatar
gmayor gmayor is offline Editing a message pre sending makes it unsendable Windows 10 Editing a message pre sending makes it unsendable Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The message may be new (though I haven't seen it) but the problem with editing messages in the outbox resulting in the message not being sent is by no means a new one. It is however easily resolved with a macro. Add this macro to the ribbon and use it to resend the messages in the Outbox then res-synch the messages.



Code:
Option Explicit
Sub SendAndReceiveAll()
Dim olNS As NameSpace
Dim olSyncs As SyncObjects
Dim olSync As SyncObject
Dim olItems As Items
Dim olItem As Object
Dim i As Long

    Set olNS = Application.GetNamespace("MAPI")
    Set olSyncs = olNS.SyncObjects
    Set olItems = olNS.GetDefaultFolder(4).Items
    For i = olItems.Count To 1 Step -1
        Set olItem = olItems(i)
        olItem.Send
        DoEvents
    Next i
    For i = 1 To olSyncs.Count
        Set olSync = olSyncs.Item(i)
        olSync.Start
        DoEvents
    Next
lbl_Exit:
    Set olItems = Nothing
    Set olItem = Nothing
    Set olNS = Nothing
    Set olSyncs = Nothing
    Set olSync = Nothing
    Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 

Tags
after edit, messages, unable to send



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a rule: How do I include a copy of the original e-mail message when sending an Emerogork Outlook 0 04-09-2012 07:11 AM
Editing default message form lvr123 Outlook 0 01-07-2011 05:33 AM
manually sending a message from outbox Mr.McRude Outlook 0 06-17-2010 11:46 AM
Delete message after sending it (Rules and alerts) mwthrane Outlook 0 12-16-2009 10:53 AM
Sending 1 message but status bar says 1 of 4... baldmancan Outlook 4 03-06-2009 12:04 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft