Returning to Main Tab
Posted by Del on April 20, 2000 7:58 AM
I have a problem,
I can't get this macro to return to the "Main" tab when it has moved open worksheets to this workbook (SK Compiler).
It always stays (I think) on the last tab it has moved from another workbook.
It's probably really simple, but I can't do it!
Please help, Thanks in advance.
Del.
(Below is my macro for this)
Do Until Empty
Application.ScreenUpdating = False
ActiveWindow.ActivateNext
ActiveSheet.Select
ActiveSheet.Move After:=Workbooks("SK Compiler.xls").Sheets(2)
ActiveWindow.DisplayWorkbookTabs = True
ActiveWindow.ActivateNext
Application.DisplayAlerts = False
ActiveWindow.Close
If ActiveWorkbook.Name = "SK Compiler.xls" Then End
Application.DisplayAlerts = True
Windows("SK Compiler.xls").Activate
Sheets("Main").Select
Range("A1").Select
Loop
End Sub