Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My users may or may not have a folder called "C:\Audits".
When they run a certain macro, it should check to see if the folder exists, and if it does not, create it and then save As the open Excel workbook to the Audit folder under a new name. Any ideas on how to check for/create the Audit folder from within Excel? TIA Paul |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This should work for you...
On Error Resume Next MkDir ("C:\Audit") On Error GoTo 0 -- HTH... Jim Thomlinson "Paul" wrote: My users may or may not have a folder called "C:\Audits". When they run a certain macro, it should check to see if the folder exists, and if it does not, create it and then save As the open Excel workbook to the Audit folder under a new name. Any ideas on how to check for/create the Audit folder from within Excel? TIA Paul |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The prior replies would probably work..
You could also use variations on the following to test for existence of directory. It would be true if no directory exists and a Make Directory command would be appropriate. If dir(€śC:\Audits€ť)< €śC:\Audits€ť Paul wrote: My users may or may not have a folder called "C:\Audits". When they run a certain macro, it should check to see if the folder exists, and if it does not, create it and then save As the open Excel workbook to the Audit folder under a new name. Any ideas on how to check for/create the Audit folder from within Excel? TIA Paul |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do you create file folder labels in excel? | New Users to Excel | |||
Create a folder from excel | Excel Programming | |||
How to create the hyperlink from Excel doc. to the folder | Excel Discussion (Misc queries) | |||
Create Folder and Text File in folder | Excel Programming | |||
Create Folder / Copy Folder / Replace | Excel Programming |