Hello,
Can someone look at this and let me know if this is built correctly?
This code is supposed to use the first part of the path then add in a referenced cell to add an additional folder name, then add a fixed name, then grab another referenced cell to add another part of the workbook name. In this case the final path should look like this:
The error message is: Method 'SaveAs' of object'_Workbook' Failed
Can someone look at this and let me know if this is built correctly?
Code:
Application.DisplayAlerts = False ' suppress overwrite warning message
ActiveWorkbook.SaveAs Filename:="\\fleet.ad\data\Data1\VMSSHARE\FS\FPSCOEASSO\Temporary Fleet Reports\313670 Avanir\Final Result\" & cellValueFolderName & "313670 Avanir Biweekly Dashboard " & cellvalueFolderName1 & ".xlsx"
Application.DisplayAlerts = True
This code is supposed to use the first part of the path then add in a referenced cell to add an additional folder name, then add a fixed name, then grab another referenced cell to add another part of the workbook name. In this case the final path should look like this:
Code:
\\fleet.ad\data\Data1\VMSSHARE\FS\FPSCOEASSO\Temporary Fleet Reports\313670 Avanir\Final Result\July-25-2018\"313670 Avanir Biweekly Dashboard July-25-2018.xlsx"
The error message is: Method 'SaveAs' of object'_Workbook' Failed