Hi All,
I am trying to write a code which accomplishes the following:
1. Amongst all open workbook activate workbook with 10th sheet named as Run
2. Display message if no such sheet found in any workbook
I have written the following code for the first point:
I am struggling to figure out the logic and the code for the second part. Any help on the same is much appreciated
I am trying to write a code which accomplishes the following:
1. Amongst all open workbook activate workbook with 10th sheet named as Run
2. Display message if no such sheet found in any workbook
I have written the following code for the first point:
Code:
Sub IdentifyValidationTool()
Dim w As Workbook
For Each w In Workbooks
If w.Worksheets(10).Name = "Run" Then
w.Activate
End If
Next w
End Sub
I am struggling to figure out the logic and the code for the second part. Any help on the same is much appreciated