View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
hshayh0rn hshayh0rn is offline
external usenet poster
 
Posts: 74
Default Select all sheets and copy

Thanks Brian. How would I use your statement if I wanted all of the sheets to
be copied to a new workbook?

"Brian Taylor" wrote:



For i = 1 To Worksheets.Count
Sheets(i).Copy Befo=Workbooks("Book2").Sheets(2)
Next wks

or

For each wks in worksheets
wks.copy Befo=Workbooks("Book2").Sheets(2)
Next wks