Worksheet exists
One way:
Const sNAME As String = "ParticularName"
Dim ws As Worksheet
On Error Resume Next
Set ws = Worksheets(sNAME)
On Error GoTo 0
If Not ws Is Nothing Then
MsgBox "Worksheet " & sNAME & " exists"
Else
MsgBox "Worksheet " & sNAME & " doesn't exist"
End If
In article ,
"Kaval" wrote:
Is there an easy way to find out if a sheet with a particular name already
exists in a workbook?
Thanks, Kaval
|