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

Hi,

I am using the following code to split one workbook with multipl
worksheets into - many workbooks.


Sub SplitSheets()
Dim W As Worksheet
For Each W In Worksheets
W.SaveAs ActiveWorkbook.Path & "/" & W.Name
Next W
End Sub


The problem i have is this takes several minutes to run and it doesn'
actually work - it replicates the original.

Could i ask for some help optimising the code please!

thanks,
Hamis

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