
April 26th, 2004, 01:58 PM
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Searching outlook emails by date
Hello,
I've been pulling my hair out trying to figure out howto search a specific folder in outlook.
I am able to select the folder by using this vba statement Set olStartFolder = olSession.PickFolder".
After executing the above command variable olStartFolder contains the name of the desired folder (without the full path.. example "TROO-returned emails", but when I use this command
Set olStartFolder = olSession.Folders("\\Mailbox - Order Online Support (Thomastech)\TROO-returned emails")
I receive a runtime error saying object couldn't be found.
Any idas?
Thanks in advance for your help.
Angelo
|