i have an employee names from range("c24") till empty cell the prog works. if the employee name sheet is not there then the prog popup a msg box, saying "no sheet" and continue finding with other employee name
i tried this but it throws error wen sheet of a particular employee name is not available
Sub emptest()
Dim tempname As String
Worksheets("team").Select
Range("c24").Select
Do While ActiveCell.Value <> ""
tempname = ActiveCell.Value
If ActiveCell.Value = tempname Then
Worksheets(tempname).Select
Else
MsgBox "no sheet"
End If
Worksheets("team").Select
ActiveCell.Offset(1, 0).Select
Loop
End Sub
please help me
i tried this but it throws error wen sheet of a particular employee name is not available
Sub emptest()
Dim tempname As String
Worksheets("team").Select
Range("c24").Select
Do While ActiveCell.Value <> ""
tempname = ActiveCell.Value
If ActiveCell.Value = tempname Then
Worksheets(tempname).Select
Else
MsgBox "no sheet"
End If
Worksheets("team").Select
ActiveCell.Offset(1, 0).Select
Loop
End Sub
please help me