My goal is to create a new worksheet and name it depending on a value in a drop down list and loop it for every "yes" in the list.
The last string is not working and I have no idea how to loop the renaming process to fetch the correct name.
For example: If cell I65 has the value of "AP" I want the newly generated sheet to be named to the value in A65.
Dim rng As Range, cell As Range, was As Worksheet
Set rng = Range("A1:A3")
Sheets("Setup").Select
For Each cell In Range("I48:I85")
    If cell = "AP" Then
        Sheets("AP").Select
        Sheets("AP").Copy Before:=Sheets(1)
        Dim AP(2) As Worksheet
        Set AP(2) = ActiveWorkbook.Sheets("AP (2)")
        AP(2).Name = Worksheets("Setup").Range("A48:A85").Value
    End If
Next cell
 
     
     
    