![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |