Hi
I have the following macro and I need to tidy up and make a few changes if poss. What it is when it opens up X/BACKUP I need it to auto create a subfolder and then ask me to name it before moving the data from the other files into it.
Macro enclosed.
ActiveWorkbook.SaveAs fileName:="X:\backup\summary.xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ChDir "X:\NEW INPUT SCREENS"
Workbooks.Open fileName:="X:\NEW INPUT SCREENS\WEEK 1.xls"
ActiveWorkbook.Save
ChDir "X:\backup"
ActiveWorkbook.SaveAs fileName:="X:\backup\WEEK 1.xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ChDir "X:\MKEYNES"
Workbooks.Open fileName:="X:\MKEYNES\WEEK 2.XLS", updatelinks:=3
ChDir "X:\backup"
ActiveWorkbook.SaveAs fileName:="X:\backup\WEEK 2.xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ChDir "X:\NEW INPUT SCREENS"
Workbooks.Open fileName:="X:\NEW INPUT SCREENS\WEEK 3.xls"
ChDir "X:\backup"
ActiveWorkbook.SaveAs fileName:="X:\backup\WEEK 3.xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ChDir "X:\MKEYNES"
Workbooks.Open fileName:="X:\MKEYNES\WEEK 4.XLS", updatelinks:=0
ChDir "X:\backup"
ActiveWorkbook.SaveAs fileName:="X:\backup\WEEK 4.xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ActiveWindow.Close
ActiveWindow.Close
ActiveWindow.Close
ActiveWindow.Close
End Sub
I have the following macro and I need to tidy up and make a few changes if poss. What it is when it opens up X/BACKUP I need it to auto create a subfolder and then ask me to name it before moving the data from the other files into it.
Macro enclosed.
ActiveWorkbook.SaveAs fileName:="X:\backup\summary.xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ChDir "X:\NEW INPUT SCREENS"
Workbooks.Open fileName:="X:\NEW INPUT SCREENS\WEEK 1.xls"
ActiveWorkbook.Save
ChDir "X:\backup"
ActiveWorkbook.SaveAs fileName:="X:\backup\WEEK 1.xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ChDir "X:\MKEYNES"
Workbooks.Open fileName:="X:\MKEYNES\WEEK 2.XLS", updatelinks:=3
ChDir "X:\backup"
ActiveWorkbook.SaveAs fileName:="X:\backup\WEEK 2.xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ChDir "X:\NEW INPUT SCREENS"
Workbooks.Open fileName:="X:\NEW INPUT SCREENS\WEEK 3.xls"
ChDir "X:\backup"
ActiveWorkbook.SaveAs fileName:="X:\backup\WEEK 3.xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ChDir "X:\MKEYNES"
Workbooks.Open fileName:="X:\MKEYNES\WEEK 4.XLS", updatelinks:=0
ChDir "X:\backup"
ActiveWorkbook.SaveAs fileName:="X:\backup\WEEK 4.xls", FileFormat:= _
xlExcel8, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False
ActiveWindow.Close
ActiveWindow.Close
ActiveWindow.Close
ActiveWindow.Close
End Sub