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 - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Open non-Inbox folder if any unread there



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 27th 08, 11:11 PM posted to microsoft.public.outlook
Peter Durkee
external usenet poster
 
Posts: 137
Default Open non-Inbox folder if any unread there

You can't write a rule to make Outlook behave as you want, but you could
have Outlook go to the Unread Mail Search Folder when it starts up. Since
you can restrict the folders that search folders search in you can get
approximately the result you want this way.

-Peter

wrote in message
...
I want upon starting OL07 to have it normally go to Inbox, but instead
go to folder XYZ if there is anything unread in XYZ. (BTW, I don't
care if it does or doesn't when a new item arrives in XYZ after OL is
running.)

Can this be done within a Rule? This always applies to a certain
Sender. Is there an action that changes the current folder when it
fires the rule? How about an action that just opens the message (I'm
surprised that I don't see that action listed)?

I also noticed one of the actions for a rule is "run a script." Does
that refer to a VBA sub name? If so, I could change folders that way.
( However, just as a matter of style, I'd prefer to avoid code if
it's built it - avid coder avoids coding )



  #2  
Old May 29th 08, 01:22 AM posted to microsoft.public.outlook
[email protected]
external usenet poster
 
Posts: 20
Default Open non-Inbox folder if any unread there

Thank you Peter for the reply and helpful suggestions. But I only want
to go to Unread of one specific folder; and as far as using a search
folder goes I don't see where you can specify "Unread," which is the
only circumstance I want to go there. Anyway I hadn't even conceived
of using a search folder as startup default. Thank you for that
thought-inspiring idea.

Well if it's not built in this should be easy for regular Outlook
coders. Is there another Outlook group where programmers go?
Otherwise, this (below) needs help. Note the crashing line containing
the word invalid. (Better yet, is there a direct property instead of
For Each, in the spirit of "Unread.count" ?)

Private Sub test_StartupSearchFolderFooForUnRead() 'and go there if
anything unread
Dim olapp As Outlook.Application, objFolder As Outlook.Folder,
myItem As mailItem
Set olapp = Outlook.Application 'Should I even bother w/ this var.?
Set objFolder = olapp.Session.Folders("Mailbox - John
Doe").Folders("Excel")
For Each myItem In objFolder 'This line invalid. Help?
If myItem.UnRead Then
objFolder.Display
Exit For
End If
Next
Set objFolder = Nothing: Set olapp = Nothing
End Sub

I guess "run a script" means something else.

Might this go in ThisOutlookSession Application_Startup?

I understand that this does not switch from the current Folder (which
I have defaulted to Inbox).

Thanks for reading this far!
  #3  
Old May 29th 08, 08:55 PM posted to microsoft.public.outlook
[email protected]
external usenet poster
 
Posts: 20
Default Open non-Inbox folder if any unread there

Am I using the wrong forum? Or is this subject name such that few even
read the thread? I thought this would be trivial to most nonbeginners.
 




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
When I open outlook XP it does not go directly to the inbox folder SteveL Outlook - Installation 7 January 29th 08 12:39 AM
Search Folder for Inbox and unread messages [email protected] Outlook - General Queries 1 June 8th 07 02:26 AM
Read mail appears in unread folder on Outlook 2007 open Scott Brooks Outlook - General Queries 2 February 26th 07 01:44 PM
I cannot open folder or view items in inbox Debmcb Outlook - Installation 1 January 16th 07 02:46 PM
Unread Mail not seen in Inbox: OWA Steve W Outlook - General Queries 1 October 14th 06 03:43 AM


All times are GMT +1. The time now is 01:16 PM.


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.