Hi,
I want to find and compare a work sheet with my given name.
Dim NewSheetName as String
For Each Ws.Name In ThisWorkbook.Worksheets
Set Find1 = .Find(What:=NewSheetName, MatchCase:=True)
If Not Find1 Is Nothing Then
'-----------------------------------True condition
Else
'-----------------------------------False condition
Endif
above macro not working.............
help me
Nuwan
I want to find and compare a work sheet with my given name.
Dim NewSheetName as String
For Each Ws.Name In ThisWorkbook.Worksheets
Set Find1 = .Find(What:=NewSheetName, MatchCase:=True)
If Not Find1 Is Nothing Then
'-----------------------------------True condition
Else
'-----------------------------------False condition
Endif
above macro not working.............
help me
Nuwan
Last edited: