I'm using the following code but get a runtime 424 error. Also, I would like to the sheet name in c17 to last cell
Private Sub CommandButton1_Click()
lastcell = ThisWorkbook.Worksheets("Master").Cells(Rows.Count, 1).End(xlUp).Row
For i = 17 To lastcell
With YhisWorkbook
newname =...