hendrikhe

Outlook, get size of a subfolder

6 posts in this topic

#1 ·  Posted

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



#2 ·  Posted

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - 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

#3 ·  Posted (edited)

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

#4 ·  Posted

_OL_FolderAccess returns an array. So it should be

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

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - 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

#5 ·  Posted

Thanks, that helped!

Share this post


Link to post
Share on other sites

#6 ·  Posted

:) 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - 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