Create an account Home  ·  Topics  ·  Downloads  ·  Your Account  ·  Submit News  ·  Top 10  
Modules
· Home
· Content
· FAQ
· Forensic Downloads
· Forensics Feedback
· Forums
· Members List
· Statistics
· Surveys
· Top 10
· Topics
· Training Reviews
· Web Links
· Your Account

Our Membership

Latest: Reveles
New Today: 2
New Yesterday: 2
Overall: 29310

Computer Forensics
This is a free and open peer to peer medium for digital and computer forensics professionals and students. Please help us maintain it by contributing and perhaps linking to us from your own website.

Recent Posts

 Loss internet connection
 Hash calculation between image and original file
 Final Year Project
 Android devices with PIN screen lock and without USBdebb. on
 Can file creation and modifications on pendrives be found?

Computer Forensics World Forums


Pages Served
We received
50459100
page views since August 2004

Security Sources

FTC
OnGuard Online
ISO 17799 ISO 27001
ISO 27000 Toolkit
ISO 27001 & 27000
Cryptography
Security Policies

Computer Forensics World: Forums

Computer Forensics World :: View topic - open all the unread emails at once in Outlook
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

open all the unread emails at once in Outlook

 
Post new topic   Reply to topic    Computer Forensics World Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
nataliety
Newbie
Newbie


Joined: May 16, 2017
Posts: 1

PostPosted: Wed May 17, 2017 12:16 pm    Post subject: open all the unread emails at once in Outlook Reply with quote

Hey,

As I create quite a few subfolders in outlook, the emails will send to different folders. Every day I need to check the new emails from one folder to another folder. It really cost time and sometimes may miss some unread emails.

So can I just open all unread emails at once in Outlook, do not need to find them in all folders and open them one by one? any ideas?
Back to top
View user's profile
Anny
Newbie
Newbie


Joined: May 20, 2017
Posts: 1

PostPosted: Sat May 20, 2017 5:31 pm    Post subject: Reply with quote

hi,nataliety

Try to write VBA codes to do that. I just find a link which may be just what you need.

datanumen . com/blogs/batch-open-unread-emails-outlook-via-vba/

And I also attach the codes here in case the link may be invalid in the future

Code:
Sub OpenAllUnreadEmails()
    Dim objFolders As Outlook.Folders
    Dim objFolder As Outlook.Folder
    Dim lUnreadMailCount As Long
 
    lUnreadMailCount = 0
    'Change "John Smith" to the name of your own Outlook file
    Set objFolders = Outlook.Application.Session.Folders("John Smith").Folders
 
    For Each objFolder In objFolders
        Call ProcessFolders(objFolder, lUnreadMailCount)
    Next
 
    MsgBox "Open " & lUnreadMailCount & " unread emails successfully!", vbExclamation + vbOKOnly, "Batch Open Unread Mails"
End Sub

Sub ProcessFolders(ByVal objCurrentFolder As Outlook.Folder, lCurUnreadEmailCount As Long)
    Dim objItem As Object
    Dim objMail As Outlook.MailItem
    Dim objSubfolder As Outlook.Folder
 
    'Display Unread Emails only
    If objCurrentFolder.DefaultItemType = olMailItem Then
       For Each objItem In objCurrentFolder.Items
           If TypeOf objItem Is MailItem Then
              Set objMail = objItem
              If objMail.UnRead = True Then
                 objMail.Display
                 lCurUnreadEmailCount = lCurUnreadEmailCount + 1
              End If
           End If
       Next
    End If
 
    If objCurrentFolder.Folders.Count > 0 Then
       For Each objSubfolder In objCurrentFolder.Folders
           Call ProcessFolders(objSubfolder, lCurUnreadEmailCount)
       Next
    End If
End Sub
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Computer Forensics World Forum Index -> Miscellaneous All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB 2.0.10 © 2001 phpBB Group
phpBB port v2.1 based on Tom Nitzschner's phpbb2.0.6 upgraded to phpBB 2.0.4 standalone was developed and tested by:
ArtificialIntel, ChatServ, mikem,
sixonetonoffun and Paul Laudanski (aka Zhen-Xjell).

Version 2.1 by Nuke Cops 2003 http://www.nukecops.com

Forums ©

 

TMs property of their respective owner. Comments property of posters. 2007 Computer Forensics Science World.
Digital forensic computing news syndication: Computer Forensics Training News or UM Text
Software is copyrighted phpnuke.org (c)2003, and is free under licence agreement. All Rights Are Reserved.