O
Oldjay
I started a post but it became too complicated. So here is my problem
I have 3 or more open worksheets
One is named Tempdata.xls and is not active.
In the active workbook I have the following macro by Alex-
Sub CloseTempData()
This steps thru the if - then but doesn't see and close Tempdata.xls
I have 3 or more open worksheets
One is named Tempdata.xls and is not active.
In the active workbook I have the following macro by Alex-
Sub CloseTempData()
Dim wkb As Workbook
For Each wkb In Workbooks
If wkb.Name = "Tempdata.xls" Then
wkb.Close
End If
Next wkb
End Sub
This steps thru the if - then but doesn't see and close Tempdata.xls