I am looking to get a macro that will copy "Column A" in Tab "Budget" for all open workbooks and place in a newly created workbook in a big line in that "Column A"
If you need more info please let me know. Thanks
I am looking to get a macro that will copy "Column A" in Tab "Budget" for all open workbooks and place in a newly created workbook in a big line in that "Column A"
If you need more info please let me know. Thanks
Hi,
This code (untested) should do as you need...
![]()
Please Login or Register to view this content.
Rule 1: Never merge cells
Rule 2: See rule 1
"Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".
I was giving me a syntax error
Sub LoopThroughSheets()
Dim wbBook As Workbook, rCopy As Range, rPaste As Range
With Worksheets("Budget")
For Each wbBook In Workbooks
If wbBook.Name <> ThisWorkbook.Name Then
Set rPaste = .Range&(A65536").End(xlUp).Offset(1, 0)
Set rCopy = wbBook.Range(Range("A1"), Range("A1").End(xlDown))
rCopy.Copy Destination:=rPaste
End If
Next
End With
If i can get it to open a new workbook and paste it into sheet 1 that would be great...
If you're posting code, please wrap it in code tags as described here.
Typo, sorry
Please replace with this
Paste this code into an empty workbook and run it.![]()
Please Login or Register to view this content.
Sorry
![]()
Please Login or Register to view this content.
Last edited by shg; 08-25-2010 at 01:26 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks