View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
mudraker[_275_] mudraker[_275_] is offline
external usenet poster
 
Posts: 1
Default Adding new workbook!

a couple of examles on how to do it once.

You would need to repeat code for multiple times or inclose in a FO
loop



Sub Macro1()
Dim wsData As Worksheet
Set wsData = ActiveSheet

Workbooks.Add
wsData.Cells.Copy
ActiveSheet.Paste

'your manipulation code here

ActiveWindow.Close savechanges:=False

End Sub

Sub Macro2()
Dim wsData As Worksheet
Set wsData = ActiveSheet

Workbooks.Add
wsData.Copy Befo=ActiveWorkbook.Sheets(1)
'your manipulation code here
ActiveWindow.Close savechanges:=False
End Su

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