+ Reply to Thread
Results 1 to 2 of 2

If the file exists "Yes should appear"

  1. #1
    Registered User
    Join Date
    09-09-2005
    Posts
    37

    If the file exists "Yes should appear"

    Hi All,

    I am asking people to fill out a questionairre, which their responses are saved in a shared folder. Their responses are saved as theirname.xls. Is it possible, if I have an excel sheet with all the names in one column, to have excel put a "YES" in the adjacent column if the userse file exists?

    Thank you for your quick reply.

  2. #2
    Tim Williams
    Guest

    Re: If the file exists "Yes should appear"

    Function FileExists(UserName as string) as string
    Const DIRPATH as string="C:\stuff\" 'or whatever

    if dir(DIRPATH & UserName & ".xls")<>"" then
    FileExists="Yes"
    else
    FileExists="No"
    end if

    end function



    Tim

    "Sami82" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi All,
    >
    > I am asking people to fill out a questionairre, which their responses
    > are saved in a shared folder. Their responses are saved as
    > theirname.xls. Is it possible, if I have an excel sheet with all the
    > names in one column, to have excel put a "YES" in the adjacent column
    > if the userse file exists?
    >
    > Thank you for your quick reply.
    >
    >
    > --
    > Sami82
    > ------------------------------------------------------------------------
    > Sami82's Profile:
    > http://www.excelforum.com/member.php...o&userid=27111
    > View this thread: http://www.excelforum.com/showthread...hreadid=525538
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1