Hello munkee,
It has been a hectic day since tomorrow is Thanksgiving Day here in the states and for most people is a 4 day holiday.
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim BackupPath As String
Dim ParentPath As String
Dim WorkingDir As String
ParentPath = "\\dfz70588\106124001\workgroup\Fraud Error Strategy Team\Recovery\Roll up work\testfolder\"
BackupPath = Format(Range("'Main Menu'!K8"), "DD.MM.YYYY")
If Dir(ParentPath & "\" & BackupPath, vbDirectory) = "" Then
'Make the directory
WorkingDir = CurDir
ChDir ParentPath
MkDir BackupPath
ChDir WorkingDir
End If
With ThisWorkbook
.SaveCopyAs (ParentPath & "\" & BackupPath & "\" & Range("'Main Menu'!H5").Value & ("-") & Format(Range("'Main Menu'!K8"), "DD.MM.YYYY") & ".xls")
End With
End Sub
Bookmarks