Hidden worksheet problem
I am afraid on my system the hidden worksheet "Master" does in fact get
renamed. It gets renamed to "Master (2)"
"Joel" wrote:
The code shouldn't fail. Only the new sheet gets renamed. The original
"Master" sheet is still hidden and doesn't get renamed.
"Patrick C. Simonds" wrote:
Thanks.
This does just about almost what I need it to. One problem though is that it
renames the hidden worksheet. It changes it from Master to Master (2) which
means of course, the next time the code is run it fails because it is
looking for Master.
So is there any way to prevent this and to give the newly created worksheet
the name "Blank"?
"Per Jessen" wrote in message
...
Hi
Try this:
Sub CopyHiddenSheet()
'Sheets("Master").Visible = False
Sheets("Master").Copy After:=Sheets(Sheets.Count)
With Sheets(Sheets.Count)
.Name = "Master" & Sheets.Count
.Visible = True
End With
End Sub
Regards,
Per
On 20 Okt., 04:41, "Patrick C. Simonds" wrote:
I would like to create a worksheet and call it Master and have the
worksheet
hidden. What I need is a routine which will create a copy of the hidden
worksheet.
|