Check to see if mail folder exists

sambrierley

Registered User.
Local time
Yesterday, 19:31
Joined
Apr 24, 2014
Messages
56
Hi all,
me and a colleague have access to the same email folder but for some strange reason its named differently on our machines.
how can i set a check to see if one exists, if that doesnt exists try another, anything i try results in an error.

this is what ive triedm thanks all

Code:
If IsError(myNameSpace.Folders("timesheet.test@imtech.uk.com")) = True Then
Set myFolder = myNameSpace.Folders("Timesheet Test")
Else
Set myFolder = myNameSpace.Folders("timesheet.test@imtech.uk.com")
End If
 
What kind of folders are you talking about? File system? On a PC? In some software? What type of objects are myFolder and myNameSpace?
 

Users who are viewing this thread

Back
Top Bottom