I have this code and is all perfect, only need a modification so that at a time of saving the files on respective path, it should ignore or disable the workbook_open module at the time of saving
ThisWorkbook.SaveCopyAs in this part it should not save (ref screen shot)
screen shot :- this part should not be saved in part of ThisWorkbook.SaveCopyAs
ThisWorkbook.SaveCopyAs in this part it should not save (ref screen shot)
VBA Code:
Sub SavefinalOutput1()
Dim SavePath As String
Dim SavePath1 As String
Dim fileName As String
Dim NewWorkbook As Workbook
SavePath = ActiveWorkbook.Path & "\" & "AEmailToDOFiles" & "\"
SavePath1 = ActiveWorkbook.Path & "\" & "JIRA_Final_Report" & "\"
fileName = "Jira Daily Report-" & Sheets("Report").Range("c11").Value & ".xlsm"
ThisWorkbook.SaveCopyAs SavePath & fileName
ThisWorkbook.SaveCopyAs SavePath1 & fileName
End Sub
screen shot :- this part should not be saved in part of ThisWorkbook.SaveCopyAs