Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Copy all sheets into 1

Hello. Anyone know how to take every visible sheet in a workbook, and paste
each sheet (one under the other) onto a single sheet called "Upload"?
Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default Copy all sheets into 1

This will do it - but goes wrong if the Upload sheet has a history, i.e. if
Ctrl-End in Upload takes you anywhere other than the first cell (to reset
this, clear all of the Upload sheet and then close and open the file).

Sub PasteAll()
Dim mySheet As Worksheet
For Each mySheet In Worksheets
If mySheet.Name < "Upload" Then
mySheet.Select
Range(Range("A1"), ActiveCell.SpecialCells(xlLastCell)).Copy
Worksheets("Upload").Select
Range("A1").Select
ActiveCell.SpecialCells(xlLastCell).Select
Selection.End(xlToLeft).Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
End If
Next
End Sub

"Steph" wrote:

Hello. Anyone know how to take every visible sheet in a workbook, and paste
each sheet (one under the other) onto a single sheet called "Upload"?
Thanks!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy cell info to other sheets, other sheets dont contain all row. Ja Excel Worksheet Functions 1 November 1st 09 12:53 AM
copy sheets kathy Excel Discussion (Misc queries) 3 September 15th 09 03:21 PM
move or copy sheets doesn't copy format ColinX Excel Worksheet Functions 1 May 14th 08 10:07 PM
in VBA Sheets("mysheet").Copy Befo=Sheets(1) how do i get a reference to the newly created copy of this sheet? Daniel Excel Worksheet Functions 1 July 6th 05 09:57 PM
Copy Sheets Edgar Excel Programming 0 April 28th 04 10:49 AM


All times are GMT +1. The time now is 11:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"