I have an xlsm file that I want to save with a location referenced in cell E2, and then save a copy in two different locations as an xlsx format. The two different locations will be on a sheet called "ABC" in cells E3 and E4. I have no issue saving the xlsm file, but can't save the xlsx files. Anyone have any thoughts?
Sub Save()
ActiveWorkbook.Save
Sheets("ABC").Select
pathForFirstSave = Range("E2").Value
pathForSecondSave = Range("E3").Value
pathForThirdSave = Range("E4").Value
ActiveWorkbook.SaveAs fileName:=pathForFirstSave
ActiveWorkbook.SaveAs fileName:=pathForSecondSave
ActiveWorkbook.SaveAs fileName:=pathForThirdSave
End Sub
E2: =“\\us.global.company.com\public\Folder1\Folder2\Folder3\Folder4\Folder5\Folder6\folder7\SOD Master File.xlsm”
E3: =”\\us.global.company.com\public\Folder1\Folder2\Folder3\Folder4\Folder5\Folder6\folder7\ABC File.xlsx”
E4: =”\\us.global.company.com\public\Folder1\Folder2\Folder3\Folder4\Folder5\Folder6\folder7\XYZ File.xlsx”
Sub Save()
ActiveWorkbook.Save
Sheets("ABC").Select
pathForFirstSave = Range("E2").Value
pathForSecondSave = Range("E3").Value
pathForThirdSave = Range("E4").Value
ActiveWorkbook.SaveAs fileName:=pathForFirstSave
ActiveWorkbook.SaveAs fileName:=pathForSecondSave
ActiveWorkbook.SaveAs fileName:=pathForThirdSave
End Sub
E2: =“\\us.global.company.com\public\Folder1\Folder2\Folder3\Folder4\Folder5\Folder6\folder7\SOD Master File.xlsm”
E3: =”\\us.global.company.com\public\Folder1\Folder2\Folder3\Folder4\Folder5\Folder6\folder7\ABC File.xlsx”
E4: =”\\us.global.company.com\public\Folder1\Folder2\Folder3\Folder4\Folder5\Folder6\folder7\XYZ File.xlsx”