Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is there a small macro that will take all the worksheets from all open
workbooks and put them in one new consolidated workbook? Thanks Barry |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this Barry
Copy this macro in a new workbook and run it Or do you want to use it in your personal.xls Sub test() Dim wb As Workbook For Each wb In Application.Workbooks If wb.Windows(1).Visible And wb.Path < "" And wb.Name < ThisWorkbook.Name Then wb.Worksheets.Copy after:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Cou nt) End If Next End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Barry McConnell" wrote in message ... Is there a small macro that will take all the worksheets from all open workbooks and put them in one new consolidated workbook? Thanks Barry |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trying to Merge 2 Workbooks | Excel Discussion (Misc queries) | |||
Merge using Excel 2002 and Hummingbird Docs Open 3.9.0 Build 199 | Excel Discussion (Misc queries) | |||
Button fails to call macro when open an Excel via Intranet | Excel Discussion (Misc queries) | |||
Macro in all workbooks | Excel Discussion (Misc queries) | |||
Playing a macro from another workbook | Excel Discussion (Misc queries) |