Jagdev Singh
Active Member
Hi Experts
I have a code which adds a new sheet in a workbook performs the neccesary action and later I move it and save it in a default folder. I want to rename this moved sheet with the cell value which is in row1. I merged the rows (A1:M1) and the name to be renamed is the words placed here. I tried many permutation and combination, but failed to complete this action.
Regards,
JD
I have a code which adds a new sheet in a workbook performs the neccesary action and later I move it and save it in a default folder. I want to rename this moved sheet with the cell value which is in row1. I merged the rows (A1:M1) and the name to be renamed is the words placed here. I tried many permutation and combination, but failed to complete this action.
Code:
Sheets("Temp").Select
Sheets("Temp").Move
Sheets("Temp").Name = "Score Result"
ActiveWorkbook.SaveAs Filename:="C:\Users\Sinderjt\Desktop\New folder (12)\Score Sheet.xlsx"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="C:\Users\Sinderjt\Desktop\New folder (12)\Score Sheet.xlsx\Score" & ".pdf", Quality:=xlQualityStandard, IncludeDocProperties:=False, _
IgnorePrintAreas:=True, OpenAfterPublish:=False
Regards,
JD