Hi Everyone,
I have a macro I run that opens the files in a folder, runs a macro to update the file and saves it (Save As) to another folder. What I want to do now is have the last 10 characters on the file name removed and replaced with 10 characters on the spreadsheet.
The last part of the code says:
ActiveWorkbook.SaveAs Filename:=Location & myFile & ".xlsm"
wb.Close
Location is the folder I am saving to and myFile is the name of the file. Id like to automatically rename myFile with the last 10 characters off and replaced with the contents in range("B13").
Thanks,
Matt
I have a macro I run that opens the files in a folder, runs a macro to update the file and saves it (Save As) to another folder. What I want to do now is have the last 10 characters on the file name removed and replaced with 10 characters on the spreadsheet.
The last part of the code says:
ActiveWorkbook.SaveAs Filename:=Location & myFile & ".xlsm"
wb.Close
Location is the folder I am saving to and myFile is the name of the file. Id like to automatically rename myFile with the last 10 characters off and replaced with the contents in range("B13").
Thanks,
Matt