Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
1 Problem : I have a share drive in my company but some times it is accessable and some times it is not accessable due to some technical reason. If the share drive is not accessable I get an error can anyone tell me how to handel this error exit the macro. 2 Problem : How can I come to know if a particular file is available on a particular path. 3. Problem : How can I come to know if a particular path is available on a computer. Regards Heera Regards Heera |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use DIR:
If Dir(filespec) = "" Then do something else End If -- Gary''s Student - gsnu200833 "Heera" wrote: Hi, 1 Problem : I have a share drive in my company but some times it is accessable and some times it is not accessable due to some technical reason. If the share drive is not accessable I get an error can anyone tell me how to handel this error exit the macro. 2 Problem : How can I come to know if a particular file is available on a particular path. 3. Problem : How can I come to know if a particular path is available on a computer. Regards Heera Regards Heera |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Feb 13, 10:00*pm, Heera wrote:
Hi, 1 Problem : I have a share drive in my company but some times it is accessable and some times it is not accessable due to some technical reason. If the share drive is not accessable I get an error can anyone tell me how to handel this error exit the macro. 2 Problem : How can I come to know if a particular file is available on a particular path. 3. Problem : *How can I come to know if a particular path is available on a computer. Regards Heera Regards Heera You can use the DIR function. MyPath="\\server\xyz\abc.xls" StrReturn=dir(MyPath) if StrReturn="" then msgbox "The path is not availableor the file is not there" end if |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Both the solutions were usefull.
Thank you........ |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Gary can you answer my first problem.
when I dissconnect the cable of network and try to run the macor I get an error. It say bad file name error 52. How do i handle this error. Regards Heera |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
File Path Too Long? Not Anymore! Check out Long Path Tool | Excel Discussion (Misc queries) | |||
http://CannotDeleteFile.net - Cannot Delete File? Try Long Path ToolFilename is too long? Computer Complaining Your Filename Is Too Long? TheLong Path Tool Can Help While most people can go about their businessblissfully unaware of the Windo | Excel Discussion (Misc queries) | |||
Creating Excel file that points to relative path .cub file | Excel Programming | |||
Formula too long - new file path is shorter than old file path - Excel 2003 | Excel Worksheet Functions | |||
How set file open path to filepath of file opened with Explorer ? | Excel Programming |