After a few weeks off work, I'm think I may have forgotten chunks of VBA, as I'm getting the "Save as workbook method failed" error. Any help?
So here's my current code:
Do I need to create the folders first? I can't even remember doing that in the past?
So here's my current code:
Code:
Sub Exporta()
Dim wbStart As Workbook
Dim wbNew As Workbook
Set wbStart = ThisWorkbook
wsRec.Copy
Set wbNew = ActiveWorkbook
wbNew.SaveAs wbStart.Path & "\" & Format(Date, "MMM YY") & "\" & Format(Date, "DD MMM YY") & "\" & "Rec.xlsx"
wbNew.Close
End Sub
Do I need to create the folders first? I can't even remember doing that in the past?