Email Read and Delete

Status
Not open for further replies.
Outlook version
Outlook 2010 32 bit
Email Account
POP3
Hello. I found most of this attached VB code at Mark as read on delete in Outlook?. It was posted by x3ja/Alex (not sure how to give proper attribution here). The comments and the Elseif code are mine. I attached the whole thing to a button on the ribbon. It's purpose is to make deleting emails easier, using a single button instead of 2 moves of the mouse to mark read and delete an email.

Now, this worked just fine with WIN 7 Home 64-bit and Office 2010 32-bit. I have just moved to a new machine with WIN 10 Home 64-bit with the same Office 2010 32-bit.
The macro "works" with a slight difference. For each intended email, 2 iterations of the macro is needed. Tracing it I find that the 2 .Delete methods are NOT effective even though the trace shows the lines executed. For either email object type 2 passes of the entire macro are needed to cause the deletion.
Obviously my question is HUH? What is going on here. All help is appreciated. Sorry, NEVER MIND!!
Well before I sent this I decided to uninstall SPAMBAYES which is open source spam filter software I like. So I uninstalled it and the macro is just fine - only 1 interation to see the intended email go bye-bye. Curious, SPAMBAYES didn't interfere on the Win 7 machine.
So this is a non-problem now. I you want to use the code, feel free.
 

Attachments

  • Mark Read and Delete.txt
    905 bytes · Views: 320
Outlook version
Outlook 2010 32 bit
Email Account
POP3
Hi Diane. Until you wrote your note to me I didn't know anything about conversation view. So I found it, realized I didn't use it before, then checked the little radio button, then unchecked it to remain as I was before, then closed Outlook. So the odd macro behavior "seems" to be unrelated to conversation view. A few hours later I reinstalled Spambayes. Since then all is working as desired. I can get back to you in a few days with a status, if you like.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Thanks for the update. It's possible that all you needed to do was reinstall spambayes. It's not the first time that reinstalling fixed an integration problem.
 
Outlook version
Outlook 2010 32 bit
Email Account
POP3
OOPs, I promised a final update but haven't done it. Everything with SpamBayes and Win 10 (64 bit) and Outlook 2010 (32 bit) is perfect. Is there a need to close this ticket?
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M How can I determine which user read an email Exchange Server Administration 4
K cant read email or open attachement Using Outlook 0
Mary B VBscript: Need to copy every email to a folder & mark that copy as read Outlook VBA and Custom Forms 5
Mary B Outlook 2013: Rule for copying new email to folder & marking that copy as read Using Outlook 1
M How do I mark emails already received as read when I get a second, different email based on subject? Outlook VBA and Custom Forms 3
T Saving Outlook 2010 email with attachments but read the email without Outlook Using Outlook 2
M Oh please read---> Extracting email web leads on to excel spread sheet Using Outlook 3
B Move Sent Email to archival pst folder and mark as read - HOW TO Outlook VBA and Custom Forms 2
B Mark copy of sent email as read - VBA? Outlook VBA and Custom Forms 3
V move read email based on date and sender Outlook VBA and Custom Forms 6
M Another way to detect if email read? Outlook VBA and Custom Forms 6
T Some way to capture who marks an email as read Outlook VBA and Custom Forms 1
Rupert Dragwater How to permanently remove an email address Using Outlook 9
K vba code to auto download email into a specific folder in local hard disk as and when any new email arrives in Inbox/subfolder Outlook VBA and Custom Forms 0
F Auto changing email subject line in bulk Using Outlook 2
F Want to add second email to Outlook for business use Using Outlook 3
kburrows Outlook Email Body Text Disappears/Overlaps, Folders Switch Around when You Hover, Excel Opens Randomly and Runs in the Background - Profile Corrupt? Using Outlook 0
J Outlook 365 Outlook Macro to Sort emails by column "Received" to view the latest email received Outlook VBA and Custom Forms 0
A Outlook 2019 Help with forwarding email without mentioning the previous email sender. Outlook VBA and Custom Forms 0
J Macro to send email as alias Outlook VBA and Custom Forms 0
M Shift Delete doesn't delete email from server Using Outlook 4
K Incorporate selection from combobox into body of email Outlook VBA and Custom Forms 0
L Why are some email automatically going to "archive" Using Outlook 2
M Outlook Macro to save as Email with a file name format : Date_Timestamp_Sender initial_Email subject Outlook VBA and Custom Forms 0
B Outlook 2019 Custom Email form - Edit default email form Outlook VBA and Custom Forms 6
F Add a category before "Send an Email When You Add an Appointment to Your Calendar" Outlook VBA and Custom Forms 0
T Problem when requesting to view an email in a browser Using Outlook 0
J Outlook 365 Forward Email Subject to my inbox when new email arrive in shared inbox Using Outlook 0
HarvMan Archive Email Manually Using Outlook 1
L Fetch, edit and forward an email with VBA outlook Outlook VBA and Custom Forms 2
S New Email "From" box stopped working Using Outlook 0
Rupert Dragwater Duplicate email in Folder Using Outlook 8
M "Attachment Detacher for Outlook" add in, does it update the server copy of the email? Using Outlook 1
W Outlook 365 I am getting the "Either there is no default mail client" error when I try to send an email on excel Office 365 Using Outlook 1
MattC Changing the font of an email with VBA Outlook VBA and Custom Forms 1
L Specific Incoming Email Address Immediately Deleted Using Outlook 2
Witzker Outlook 2019 Macro to send an Email Template from User Defined Contact Form Outlook VBA and Custom Forms 0
Witzker Outlook 2019 Edit contact from email does not open the user defined contactform Using Outlook 3
V Macro to mark email with a Category Outlook VBA and Custom Forms 4
R Roadrunner Email Settings | Contact Roadrunner Customer Support Outlook VBA and Custom Forms 1
D Gmail mail is being delivered to a different email inbox in Outlook App 2021 Using Outlook 2
Albert McCann Outlook 2021 Outlook Display of HTML Email from two senders is glitchy Using Outlook 0
A How Do I Setup My Optonline.Net Email Account? Outlook VBA and Custom Forms 1
H Preventing the 'email address fetch from Exchange' crashing email reading code Exchange Server Administration 0
D multiple email accounts - why do I have to choose the "from" account address?? Using Outlook 2
Wotme create email only data file Using Outlook 1
F Outlook 2016 Email with attachments not being received Using Outlook 3
J Outlook 2019 Regex email addresses from body Outlook VBA and Custom Forms 6
D Prompt to prefix subject line whenever sending an email Outlook VBA and Custom Forms 3
J Quick steps delete original email and move reply/sent email to folder Using Outlook 2

Similar threads

Top