View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
HamishM[_13_] HamishM[_13_] is offline
external usenet poster
 
Posts: 1
Default Split Workbook - improved code required

Bob,

this is the code i'm using.....

Sub SplitSheets()
Dim W As Worksheet
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each W In Worksheets
W.Copy
ActiveWorkbook.SaveAs Filename:=ThisWorkbook.Path & "/" & W.Name
ActiveWorkbook.Close
Next W
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Su

--
Message posted from http://www.ExcelForum.com