Jump to content
hendrikhe

Outlook, get size of a subfolder

Recommended Posts

hendrikhe

Hello,

I am not sure if this is possible. I am looking for a way to get the size of a subfolder in Outlook.

Example:

- inbox

- VIP

- SAP

- Sent

I want to get the size of the "VIP" folder, I am using Outlook 2013. Do you have any suggestions?

Hendrik

Share this post


Link to post
Share on other sites
water

My OutlookEX UDF has a _OL_FolderSize function which should do what you need.
Download link can be found in my signature.

 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
hendrikhe

Hello @water,

very nice UDF :)

But I tried code below but I always get: 0

 

#include <OutlookEX.au3>
#include <MsgBoxConstants.au3>

Global $oOL = _OL_Open()
Global $aFolder = _OL_FolderAccess($oOL, "hendrik@test.com")
$size = _OL_FolderSize($oOL,$aFolder)

MsgBox(0, '', $size)

 

Edited by hendrikhe

Share this post


Link to post
Share on other sites
water

_OL_FolderAccess returns an array. So it should be

$size = _OL_FolderSize($oOL,$aFolder[1])

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
hendrikhe

Thanks, that helped!

Share this post


Link to post
Share on other sites
water

:) 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×