merging worksheets onto one

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. I have several worksheets within in one book. While no single worksheet
is very long, there are about 50 of them. Is there a way to autmate
assembling them all onto one worksheet page? Thanks.
 
Dim sh as Worksheet, sh1 as Worksheet
Dim rng as Range
worksheets.Add
set sh = Activesheet
for each sh1 in Worksheets
if sh1.Name <> sh.Name then
set rng = sh.Cells(rows.count,1).End(xlup)(2)
sh1.UsedRange.Copy
rng.PasteSpecial xlValues
rng.PasteSpecial xlFormats
end if
Next
 

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

Back
Top