Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to use a macro to add a sub directory. Hod do I check to verify
that it does not already exist before adding directory? TIA |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Fan924" wrote in message
... I want to use a macro to add a sub directory. Hod do I check to verify that it does not already exist before adding directory? TIA You could use Dir for that. But you don't have to, MkDir will err and create nothing if the folder already exists. Just allow it to: On Error Resume Next MkDir ("C:\Temp") HTH. Best wishes Harald |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to List the names of the subfolders present in the folder (path of folder is given in the textbox by user ) | Excel Programming | |||
Save file in a new folder, but create folder only if folder doesn't already exist? | Excel Programming | |||
How to decide folder-depth or How to select more folders/subfolders (folder-tree) ? | Excel Discussion (Misc queries) | |||
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? | Excel Discussion (Misc queries) | |||
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? | Excel Programming |