Macro that opens an xls file then saves it with another name

C

Captain Snuggles

I just want to be able to call an existing excel file, junk.xls, then
save it as notjunk.xls. Any ideas?
 
J

JLGWhiz

I think this will work.

Sub Vert()
myPath = ThisWorkbook.Path
Set wb = Workbooks.Open Filename:=myPath & "\junk.xls"
wb.SaveAs filename:="notjunk.xls"
End Sub
 
Top