Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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.


--
Sami82
------------------------------------------------------------------------
Sami82's Profile: http://www.excelforum.com/member.php...o&userid=27111
View this thread: http://www.excelforum.com/showthread...hreadid=525538

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default 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" wrote in
message ...

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Lost "File Menu" - now it's "Edit / View / Insert.." but no "F daves Excel Discussion (Misc queries) 3 April 24th 07 04:52 AM
Macro help - "Save As" when a file already exists Dave Excel Programming 1 May 18th 05 07:38 PM
Problem- Recording macros for "file save" and "File open" tritaco Excel Programming 1 April 22nd 04 06:15 PM
within a macro how can I suppress the warning pop "A file named xxxx.xls already exists in this location. Do you want to replace it?" Pete McCosh Excel Programming 0 April 2nd 04 04:51 PM


All times are GMT +1. The time now is 07:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"