Is it possible to save your workbook to 2 destinations?
When I try to put 2 destination on VB it doesn't work.
When I try to put 2 destination on VB it doesn't work.
Code:
Sub SaveAs()
Dim FName As String
Dim FPath As String
Dim NewBook As Workbook
Application.ScreenUpdating = False
FPath = "C:\Users\ROOM\Desktop\Monitoring\"
FName = "Monitoring " & Format(Date, "DD-MMM-YYYY") & ".xls"
Set NewBook = Workbooks.Add
ThisWorkbook.Sheets("MasterCopy").Copy Before:=NewBook.Sheets(1)
If Dir(FPath & "\" & FName) <> "" Then
MsgBox "File" & FPath & "\" & FName & "already exists"
Else
NewBook.SaveAs Filename:=FPath & FName
End If
Application.ScreenUpdating = True
Application.ScreenUpdating = False
Workbooks("Monitoring " & Format(Date, "DD-MMM-YYYY") & ".xls").Close SaveChanges:=True
Application.ScreenUpdating = True
Last edited: