Excel Experts,
My code needs to open a file in a network directory named "Statements".
For me, Statements is under my "T:" drive, but for other users, it's
somewhere else.
I generally run this code, so I don't want to ask for a drive letter every
time. What I want my code to do is ask, "is the directory "T:\Statements"
available?"
If the code is running on my machine, the above question will generate Yes
and the code will continue to the Then branch.
If someone else whose Statements folder is under another drive letter, the
question will generate No, and my code will go to the Else branch.
My code will be something like:
If T:\Statements Exists Then
Workbooks.Open ("T:\Statements\netcap.xls")
Else
Letter = InputBox("Enter the Drive Letter for the Statements folder")
Workbooks.Open(Letter & ":\Statements\netcap.xls")
End If
My question is, How do I ask "If T:\Statements exists"?
Thanks,
Alan
--
achidsey
Bookmarks