A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Archive file



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 22nd 06, 05:08 AM posted to microsoft.public.outlook.program_vba
Tony WONG
external usenet poster
 
Posts: 6
Default Archive file

i wish to write a VBA to check the archive file size at each Outlook
startup.

i cannot locate the object of the archive file.

anyone knows about it. Thanks a lot.

tony


  #2  
Old April 24th 06, 03:47 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Archive file

There is no size property you could use to find the size of a folder or PST
file from Outlook macro code.

You'd be better off if you know the file path to that PST file to use the
Win32 API or Windows Scripting or some other interface to read the file size
from the file system.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Tony WONG" wrote in message
...
i wish to write a VBA to check the archive file size at each Outlook
startup.

i cannot locate the object of the archive file.

anyone knows about it. Thanks a lot.

tony


  #3  
Old April 25th 06, 03:38 AM posted to microsoft.public.outlook.program_vba
Tony WONG
external usenet poster
 
Posts: 6
Default Archive file

Thank you for your clarification.

i also think so.

The difficulties to me is that different workstations save pst file at
different places.

anyway, thanks a lot.


"Ken Slovak - [MVP - Outlook]"
...
There is no size property you could use to find the size of a folder or
PST file from Outlook macro code.

You'd be better off if you know the file path to that PST file to use the
Win32 API or Windows Scripting or some other interface to read the file
size from the file system.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Tony WONG" wrote in message
...
i wish to write a VBA to check the archive file size at each Outlook
startup.

i cannot locate the object of the archive file.

anyone knows about it. Thanks a lot.

tony




  #4  
Old April 25th 06, 03:49 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Archive file

A very sneaky method is to parse out the PST file path from the StoreID
property.

If you look at Item.Parent.StoreID or Folder.StoreID, using a tool such as
OutlookSpy or MFCMAPI it's a binary array. If you view it as text you will
see the file path and name of the PST file embedded in that StoreID.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Tony WONG" wrote in message
...
Thank you for your clarification.

i also think so.

The difficulties to me is that different workstations save pst file at
different places.

anyway, thanks a lot.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i delete archive folders when the pst file is missing duchenej Outlook - General Queries 6 February 3rd 07 09:19 PM
Marking as do not archive Michael Bauer Outlook and VBA 1 March 2nd 06 06:14 PM
Auto Archive Newsgroups Outlook - General Queries 10 February 8th 06 05:29 AM
Archive Favourites B.W. Outlook Express 1 February 1st 06 08:13 AM
cannot archive calendar typical computer geek Outlook - General Queries 5 January 23rd 06 02:44 PM


All times are GMT +1. The time now is 06:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.