Rename Tab
Couple more suggestions.
Worksheet name max 31 characters
None of these characters : \ / ? *
--
Regards,
OssieMac
"Jacob Skaria" wrote:
Dont find any issue with your code. Make sure Range("A81") is not empty or a
sheet already exist by the name. Suggest you to print at last.
If this post helps click Yes
---------------
Jacob Skaria
"Kerry" wrote:
Hi Everyone,
By pressing one button I am trying to print out the timesheet, copy and save
as a new sheet and then rename the tab from the formula in cell A81. It is
hanging at ActiveSheet.Name = Range("A81").Value. Any suggestions would be
appreciated.
Sheets("Timesheet").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1
ActiveSheet.Copy after:=ActiveSheet
ActiveSheet.Name = Range("A81").Value
Sheets("Timesheet").Select
--
Kerry
|