Hi all … I need help again (spent most of yesterday on this ) …
I have code that basically, if conditions are met, copies a given sheet in the workbook and gives it a name. It has only added about 50 sheets when it crashes on the CopyBefore line below … And … I went into the excel file (with all the newly created sheets) and cannot manually perform a copy on the sheet either. So, my question (to start with) is there a limit on the number of sheets a workbook can have?
I’m kind of embarrassed to show my code since I am self-taught, but here’s a little of the code anyways …
For A = 1 To AnimalCT
Sheets(“Input-Group Info”).Select
AnimalID = Range(AnimalColLetter & 25 + A).Value
Sheets(“Generic Matrix AnimalID”).Visible = True
Sheets(“Generic Matrix AnimalID”).Select
Sheets(“Generic Matrix AnimalID”).Copy Before:=Sheets(1)
Sheets(“Generic Matrix AnimalID (2)”).Select
Sheets(“Generic Matrix AnimalID (2)”).Name = “Plasma ” & AnimalID
Again, any help/guidance is appreciated deeply
–cat