Thread
:
Accessing Attached MailBoxes
View Single Post
#
3
November 24th 08, 06:53 PM posted to microsoft.public.outlook.program_vba
Nigel[_2_]
external usenet poster
Posts: 4
Accessing Attached MailBoxes
Hi Ken
I am using v2003, but will be moving to 2007 soon. So any code will need to
detect version and adapt appropriately.
What I specifically want to do, since I cannot detect the arrival of new
mail in my attached mailbox, is to run some code that does the following...
Finds the folder by name; checks if there is mail items and saves any
attachment to a defined folder on my local system, optionally delete the
mail items from the folder.
Any code to do this gratefully received.
Cheers
--
Regards,
Nigel
"Ken Slovak - [MVP - Outlook]" wrote in message
...
You can only run rules in your default Inbox.
What version of Outlook? In Outlook 2003 and earlier you can use the
NameSpace.Folders collection to find the new mailbox folders by iterating
the Folders collection. In Outlook 2007 you can use the new Stores
collection.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Nigel" wrote in message
...
Hi All
I have an account on a corporate mail server; against which I run some
rules and event driven VBA code. All works well.
I recently added a new mailbox (attached mailbox) that I can
receive/write emails etc. Unexpectedly I am unable to run rules or see
event triggers in this mailbox. Is this possible? What do I need to do
to switch this on?
Failing that how can I access the contents of this mailbox and it's
folders from VBA code?
Many thanks
--
Regards,
Nigel
Nigel[_2_]
View Public Profile
View message headers
Find all posts by Nigel[_2_]
Find all threads started by Nigel[_2_]
Ads