Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Copy from multiple worksheets

Les
The following macro is one way. Note that the new sheet must be the active
sheet. I assumed the name of the new sheet is "New". That name is in the
macro. Change that as you wish. HTH Otto
Sub CopyA1()
Dim ws As Worksheet
Dim Dest As Range
Set Dest = Range("A" & Rows.Count).End(xlUp).Offset(1)
For Each ws In ActiveWorkbook.Worksheets
If ws.Name = "New" Then GoTo NextSheet
With ws
.Range("A1").Copy Dest
Set Dest = Dest.Offset(1)
End With
NextSheet:
Next ws
End Sub
"Les" wrote in message
...
Can anyone help please?

I'm trying to create a macro to copy the contents of cell 'A1' from each
worksheet and paste them into a list in a new sheet.

Regards

Les.




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 data in multiple worksheets kfletchb New Users to Excel 2 August 11th 06 12:18 AM
Copy only certain data from multiple worksheets Matt Excel Discussion (Misc queries) 0 February 10th 06 03:06 PM
Copy information from multiple worksheets Doug Excel Discussion (Misc queries) 0 November 25th 05 08:41 PM
Is there a way to copy multiple worksheets into one, row by row? Janet Excel Worksheet Functions 4 September 9th 05 06:37 PM
VBA: Copy from columns on multiple worksheets ddate Excel Programming 0 October 27th 04 12:45 AM


All times are GMT +1. The time now is 10:08 AM.

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"