Originally Posted by
Pravina
Hi Mana,
i want code like below.
sub test ()
dim wb as workbook
for each wb in workbook
if not wb.name like "FER Tracker*" then
msgbox "FER Tracker is not opened"
exit sub 'to teminate the whole procedure.
end if
next wb
end sub
Sub test()
Dim bWorkbookOpen As Boolean
Dim wb As Workbook
bWorkbookOpen = False
For Each wb In applicatiom.Workbooks
If wb.Name Like "FER Tracker*" Then bWorkbookOpen = True
Next
If Not bWorkbookOpen Then
MsgBox "1st OPEN fer tracker"
Exit Sub
End If
' continue
End Sub