Copy data

L

LSN

Hi,

I have 87 sheets in a workbook were all sheets contains data in A8:E21. I
want to copy data in A8:E21 from all sheets to a new sheet or a new
workbook.

How?

Thanks.
 
S

steve smallman

Sub copy_range()
For counter = 2 To Sheets.Count 'assume sheet(1) is where
data is going
Sheets(counter).Range("A8:e21").Copy
ActiveCell.Value = Sheets(counter).Name
ActiveCell.Offset(0, 1).PasteSpecial
ActiveCell.Offset(0, -1).Select
ActiveCell.Offset(14, 0).Select
Next counter
End Sub

run the sub from your master sheet (make sure it's sheet
1) and should work

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Cell data entering slow! 0
Data consolidation 0
SUMIF with criteria "<>" & "=" 4
Need Help with a VBA subroutine 0
Section and Page numbering 0
need help in creating a formula 1
Excel --> Word 4
SOMPRODUCT 5

Top