I got an error 424: Object Required
.
It's a very simple script, I can't see where I'm going wrong.
The strange thing is, this worked many times before. I am only getting these errors today.
I rename sheet one as "All Data". Then add another sheet and rename it "List".
The error happens when I try to activate the "List" sheet. Object Required
. I guess it can't detect the new sheet? Where am I going wrong? As I said this worked 100 times before.
Sheets(1).Select
Sheets(1).Name = "All Data"
Sheets.Add After:=ActiveSheet
Sheets(2).Select
Sheets(2).Name = "List"
List.Activate ' error happens here
I have also tried List.Select
instead of Activate. Same error.