Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
M C M C is offline
external usenet poster
 
Posts: 2
Default Can't delete directory created by a macro ...

I created a macro to create some directories. The problem is that
when I was creating the directories i in advertently put a space at
the end of the directory :

X:\Microsoft\Excel\Files \

As a result, of the space, I can't seem to delete this. I get an
error message 1026 saying that I can't delete the file or directory
(and sometimes I get a message saying that the directory/file is not
there, yet I can see it and create files in it).

Is there some way for me to delete this directory?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Can't delete directory created by a macro ...

Odd, the space shouldn't really matter, but who knows. Try deleting from
the command prompt:

Start---Run---cmd---ENTER
X:
CD Path\That\Is\Parent\Of\Problem\Dir (for example: CD Microsoft\Excel
DIR /X
RD NameOfProblemDirectory

Ray at work


"M C" wrote in message
om...
I created a macro to create some directories. The problem is that
when I was creating the directories i in advertently put a space at
the end of the directory :

X:\Microsoft\Excel\Files \

As a result, of the space, I can't seem to delete this. I get an
error message 1026 saying that I can't delete the file or directory
(and sometimes I get a message saying that the directory/file is not
there, yet I can see it and create files in it).

Is there some way for me to delete this directory?



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
How to delete a created Outlook form Frali Excel Discussion (Misc queries) 1 February 2nd 09 04:18 PM
Unknown excel backup files created in network directory Mike Excel Discussion (Misc queries) 0 September 18th 07 01:26 PM
Change of auto backup directory has created problem George NS Excel Discussion (Misc queries) 2 December 30th 06 08:06 PM
file save error: the file or directory cannot be created dublg Excel Discussion (Misc queries) 1 September 25th 06 07:07 PM
Can I delete .xlk backups and why are they created? dgoranson Excel Discussion (Misc queries) 4 July 11th 05 11:11 PM


All times are GMT +1. The time now is 02:30 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"