Thread: create a folder
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default create a folder

On Error Resume Next
Mkdir "c:\Myfolder"
On Error goto 0

Then you are sure it exists.

--
Regards,
Tom Ogilvy


"Bob" wrote in message
...
I have a module that saves workbooks through VB, but sometimes the file

does
not exists, what can I do so that when the folder does not exists it must
create the folder for the workbook?

Thanks
Bob