|
-
Feb 24th, 2005, 02:59 PM
#1
Thread Starter
Addicted Member
Outlook Mailbox Size
I've done a lot of coding in Outlook with VBA but there has always been this one problems that eludes me.
Can someone please tell me how to get the mailbox size? Like, when you go to your mailbox's properties and you click Folder Size. You get this window that instantly tells you how many kb are in each folder and a total for the whole mailbox. I only need to the total mailbox size.
I would think that it should be a property of the NameSpace but I can't find it. Maybe it doesn't even exist. Perhaps it's a special routine.
Changes are not permanent, but change is. {Neil Peart}
-
Feb 24th, 2005, 03:08 PM
#2
Re: Outlook Mailbox Size
Oh, an new Outlook question that has't been asked before 
What version of Outlook are you using and what mode is the mailbox in?
Exchange Mailbox or pst file?
Also, you are still doing this from Outlooks VBA or from VB?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 24th, 2005, 03:10 PM
#3
Thread Starter
Addicted Member
Re: Outlook Mailbox Size
I'm using Outlook 2000 and XP. The mailboxes are Exchange mailboxes. And I'm using VBA.
Thank you.
Changes are not permanent, but change is. {Neil Peart}
-
Feb 24th, 2005, 03:42 PM
#4
Re: Outlook Mailbox Size
Looks like it can only be accessed using CDO 1.2x

If I find any code snippletts I will post it, but I could use this feature too, so
one of these days when I get some time i may try to write one.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 24th, 2005, 04:24 PM
#5
Thread Starter
Addicted Member
Re: Outlook Mailbox Size
Thanks. I know some CDO so I can start looking into that. I understand you haven't spent anytime figuring this one out, but if you could, do you have any vague ideas or direction on where to look in CDO?
Again, Thank you.
Changes are not permanent, but change is. {Neil Peart}
-
Feb 24th, 2005, 04:41 PM
#6
Re: Outlook Mailbox Size
Sure, I did spend some time researching the CDO method for accessing it. The constant is
CdoPR_MAILBOX_SIZE but I couldnt find its value. In order to access its
value I think you may need to do some Exchange serverside scripting. 
Also, if you figure it out could you post it?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Feb 24th, 2005, 05:03 PM
#7
Thread Starter
Addicted Member
Re: Outlook Mailbox Size
Thanks for the direction. I will definitely post it when I figure it out. I have thought about digging into the Exchange side of things but everytime I think about going down that road I remind myself that this FolderSize feature is identical in a stand-alone .pst mode as it is in Exchange mode. So that has always made me believe that it is strictly an Outlook side feature. But I will find out.
Again, thanks for all your help.
Changes are not permanent, but change is. {Neil Peart}
-
Feb 24th, 2005, 07:35 PM
#8
Re: Outlook Mailbox Size
Yes, that is true, but if your running Outlook with Exchange then it may not be available the way it is in a non-exchange enviroment.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|