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

How to specify a particular inbox folder?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 3rd 06, 05:39 PM posted to microsoft.public.outlook.program_vba
Richard Lewis Haggard
external usenet poster
 
Posts: 14
Default How to specify a particular inbox folder?

Here's a real easy one. I'm trying to re-enable the display of email as it
comes it if it is being delivered to a particular mail folder but I've
forgotten how to do that. I've got the system to recognize when email
arrives to the default folder, but that's not the right one. The folder I
actually want is Inbox\CTSx Team. The folder I'm actually getting is Inbox.

My macro looks something like this:

Private WithEvents CTSxEmail as Outlook.Items

Private Sub Application_Startup
Set CTSxEmail = Application.Session.GetDefaultFolder(
olFolderInbox).Items
End Sub

--
Richard Lewis Haggard
www.Haggard-And-Associates.com


  #2  
Old April 3rd 06, 05:58 PM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default How to specify a particular inbox folder?

Am Mon, 3 Apr 2006 11:39:00 -0400 schrieb Richard Lewis Haggard:

Set CTSxEmail = Application.Session.GetDefaultFolder(
olFolderInbox).Folders("CTSx Team").Items

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Here's a real easy one. I'm trying to re-enable the display of email as it
comes it if it is being delivered to a particular mail folder but I've
forgotten how to do that. I've got the system to recognize when email
arrives to the default folder, but that's not the right one. The folder I
actually want is Inbox\CTSx Team. The folder I'm actually getting is

Inbox.

My macro looks something like this:

Private WithEvents CTSxEmail as Outlook.Items

Private Sub Application_Startup
Set CTSxEmail = Application.Session.GetDefaultFolder(
olFolderInbox).Items
End Sub

  #3  
Old April 3rd 06, 06:48 PM posted to microsoft.public.outlook.program_vba
Richard Lewis Haggard
external usenet poster
 
Posts: 14
Default How to specify a particular inbox folder?

Works beautifully. Thanks for the speedy (and useful!) answer.

--
Richard Lewis Haggard
www.Haggard-And-Associates.com
"Michael Bauer" wrote in message
news
Am Mon, 3 Apr 2006 11:39:00 -0400 schrieb Richard Lewis Haggard:

Set CTSxEmail = Application.Session.GetDefaultFolder(
olFolderInbox).Folders("CTSx Team").Items

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Here's a real easy one. I'm trying to re-enable the display of email as
it
comes it if it is being delivered to a particular mail folder but I've
forgotten how to do that. I've got the system to recognize when email
arrives to the default folder, but that's not the right one. The folder I
actually want is Inbox\CTSx Team. The folder I'm actually getting is

Inbox.

My macro looks something like this:

Private WithEvents CTSxEmail as Outlook.Items

Private Sub Application_Startup
Set CTSxEmail = Application.Session.GetDefaultFolder(
olFolderInbox).Items
End Sub



  #4  
Old April 3rd 06, 05:54 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to specify a particular inbox folder?

To get a non-default folder, you need to walk the folder hierarchy using the Folders collections or use a function that does that for you. See http://www.outlookcode.com/d/code/getfolder.htm
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Richard Lewis Haggard" HaggardAtWorldDotStdDotCom wrote in message ...
Here's a real easy one. I'm trying to re-enable the display of email as it
comes it if it is being delivered to a particular mail folder but I've
forgotten how to do that. I've got the system to recognize when email
arrives to the default folder, but that's not the right one. The folder I
actually want is Inbox\CTSx Team. The folder I'm actually getting is Inbox.

My macro looks something like this:

Private WithEvents CTSxEmail as Outlook.Items

Private Sub Application_Startup
Set CTSxEmail = Application.Session.GetDefaultFolder(
olFolderInbox).Items
End Sub

--
Richard Lewis Haggard
www.Haggard-And-Associates.com


 




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
inbox as default folder in OL 2003 [email protected] Outlook - General Queries 0 March 28th 06 08:34 PM
Inbox and local folder posts have all disappeared QUAA Outlook Express 1 March 2nd 06 04:17 PM
how do i email the entire contents of inbox folder at once jackchapin Outlook - General Queries 1 January 23rd 06 12:25 PM
Inbox folder in newsgroups??? Louie T Lizard Outlook Express 2 January 21st 06 04:44 AM
Message goes to Deleted Items folder instead of Inbox folder needhelp Outlook Express 3 January 17th 06 05:49 PM


All times are GMT +1. The time now is 11:30 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.