Consulting

Results 1 to 2 of 2

Thread: Search For a Folder

  1. #1
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    357
    Location

    Question Search For a Folder

    Hi All,

    I want to save my mail in a particular folder(ex. Folder123) in "C:\MailFolder\".
    from my outlook.

    Please guide on how to go about searching/checking whether a particular folder is available in a specific location.


    Thanks for all your valuable time n help.


    Regards
    Sudhir

  2. #2
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    This should do it...
    [vba]If Dir("C:\MailFolder", vbDirectory) = "" Then
    MsgBox "Folder does not exist!", vbInformation
    ' MkDir "C:\MailFolder"
    Else
    MsgBox "Folder exists!", vbInformation
    End If[/vba]

    HTH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •