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