ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   FileSystem.RMDIR (https://www.excelbanter.com/excel-programming/340377-filesystem-rmdir.html)

bill_morgan

FileSystem.RMDIR
 
Friends,

Excel 2000 running in XP

The following code works fine
FileSystem.MkDir "c:\lion"

However, I get error 75 (path/file access error) when I run:
FileSystem.RmDir "c:\lion"

C:\lion is an empty directory. Any ideas what's wrong? Thanks for your help
....

bill morgan






Jim Cone

FileSystem.RMDIR
 
bill,

Try it without "FileSystem."

RmDr "c\lion"

Regards,
Jim Cone
San Francisco, USA


"bill_morgan"

wrote in message
...
Friends,
Excel 2000 running in XP
The following code works fine
FileSystem.MkDir "c:\lion"
However, I get error 75 (path/file access error) when I run:
FileSystem.RmDir "c:\lion"
C:\lion is an empty directory. Any ideas what's wrong? Thanks for your help
bill morgan

bill_morgan

FileSystem.RMDIR
 
Hi, Jim ...

I am now at the office (Excel 2000 on Win 2000) - the following code now
works fine. Don't know what the problem is with Excel 2000 on my XP OS at
home. If I can't get it to work I'll do an Excel re-install.

Thanks for your help ...

Sub Tester1()
FileSystem.MkDir ("D:\lion")
End Sub

Sub tester2()
FileSystem.RmDir ("D:\lion")
End Sub



"Jim Cone" wrote:

bill,

Try it without "FileSystem."

RmDr "c\lion"

Regards,
Jim Cone
San Francisco, USA


"bill_morgan"

wrote in message
...
Friends,
Excel 2000 running in XP
The following code works fine
FileSystem.MkDir "c:\lion"
However, I get error 75 (path/file access error) when I run:
FileSystem.RmDir "c:\lion"
C:\lion is an empty directory. Any ideas what's wrong? Thanks for your help
bill morgan



All times are GMT +1. The time now is 03:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com