I need to create multiple worksheets in a workbook as per values in coloumn A. The names of the worksheets should be as per the data in coumn A.
I have created a vba code for the same but I am not able to loop it after first cell to seond cell and so on. Below is the my code.
Sub inputboxandsheetname()
Dim myValue As Variant
Dim irow As Long
irow = 1
Do While Cells(irow, 1) <> Empty
myValue = Cells(irow, 1)
If myValue <> "" Then
Sheets.Add After:=Sheets(ActiveWorkbook.Worksheets.Count)
ActiveSheet.Name = myValue
End If
irow = irow + 1
Loop
End Sub