I'm trying to save an individual worksheet in a certain location and renaming the new worksheet to a specific cell.
The workbook consists of 10 tabs of which I only require the tab 'User Form' to be saved as a separate workbook and renamed to the text in cell B4. I've managed to save the workbook, it's just the renaming side of things I'm having difficulties with.
help!
The workbook consists of 10 tabs of which I only require the tab 'User Form' to be saved as a separate workbook and renamed to the text in cell B4. I've managed to save the workbook, it's just the renaming side of things I'm having difficulties with.
help!
Code:
Sub UserForm()
ActiveSheet.Copy
With ActiveWorkbook
.SaveAs "C:\Documents\Projects\New Starters" & .Sheets(1).Name
.Close 0
End With
End Sub