Good Morning/Evening everyone,
I have the following code which works fine IF the directory is present
but I want it to create the directory if not present
I have the following code which works fine IF the directory is present
but I want it to create the directory if not present
Code:
[SIZE=3]Dim thisfilepath As String
Dim fin As String
fin = Range("A21") & ".xlsx"
thisfilepath = Application.ActiveWorkbook.Path & "\orders-copy\" & fin
'---> code that check if the directory present and add it if not
Workbooks.Add
ActiveWorkbook.SaveAs Filename:=thisfilepath[/SIZE]