VBA Problems
That didn't work. It came up with an error saying "runtime error '1004': copy
method of worksheet class failed" Thanks for the suggestion though Mike.
"Mike" wrote:
try this
Sheets("201").Copy after:=Sheets(Sheets.Count)
"Elise148" wrote:
I'm trying to copy a worksheet and move and rename it to the end of the
workbook. This is the VBA code I have...
Sheets("201").Select
N = Sheets.Count
Sheets("201").Copy After:=Sheets(N)
ActiveSheet.Name = InputBox("Enter the number of the new distributor.")
It works for several times, but then an error comes up and it highlights the
third row. I don't understand! Any ideas?!?!?
|