#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default macros

I want to copy excel information from same cells in different sheets and
paste unto the same sheet , how can I use macro or anything else to do this
without repeating the process for the many sheets I have. thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default macros

Hi,

This will copy A1 - A10 to H1 - H10 in every worksheet

Sub Stantial()
For x = 1 To Worksheets.Count
Sheets(x).Range("A1:A10").Copy Destination:=Sheets(x).Range("H1")
Next
End Sub

Mike

"kilo" wrote:

I want to copy excel information from same cells in different sheets and
paste unto the same sheet , how can I use macro or anything else to do this
without repeating the process for the many sheets I have. thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default macros

Thanks mike,

but this i need to paste the information copied from different sheets unto
one single sheet. lets say if i copy from sheet8, i need to paste unto sheet
1, copy sheet 9, paste on a different cell in sheet 1 etc. could you help.

"Mike H" wrote:

Hi,

This will copy A1 - A10 to H1 - H10 in every worksheet

Sub Stantial()
For x = 1 To Worksheets.Count
Sheets(x).Range("A1:A10").Copy Destination:=Sheets(x).Range("H1")
Next
End Sub

Mike

"kilo" wrote:

I want to copy excel information from same cells in different sheets and
paste unto the same sheet , how can I use macro or anything else to do this
without repeating the process for the many sheets I have. thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default macros

Hi,

This method of addressing worksheets uses the sheet(n) method where sheet(1)
is the leftmost sheet. This macro now copies the range A1 - H1 for every
sheet to the first worksheets.

It copies the information into the first empty row.

Sub Stantial()
lastrow = Sheets(1).Cells(Cells.Rows.Count, "A").End(xlUp).Row
For x = 2 To Worksheets.Count
Sheets(x).Range("A1:H1").Copy Destination:=Sheets(1).Range("A" & lastrow + 1)
lastrow = lastrow + 1
Next
End Sub


Mike


"kilo" wrote:

Thanks mike,

but this i need to paste the information copied from different sheets unto
one single sheet. lets say if i copy from sheet8, i need to paste unto sheet
1, copy sheet 9, paste on a different cell in sheet 1 etc. could you help.

"Mike H" wrote:

Hi,

This will copy A1 - A10 to H1 - H10 in every worksheet

Sub Stantial()
For x = 1 To Worksheets.Count
Sheets(x).Range("A1:A10").Copy Destination:=Sheets(x).Range("H1")
Next
End Sub

Mike

"kilo" wrote:

I want to copy excel information from same cells in different sheets and
paste unto the same sheet , how can I use macro or anything else to do this
without repeating the process for the many sheets I have. 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
Macros: can you copy macros from one doc to another? Roady Excel Discussion (Misc queries) 1 June 12th 08 05:47 PM
Excel 2007 macros - how to merge 5 macros together into one Sue Excel Discussion (Misc queries) 1 April 16th 08 08:36 PM
Macros warning always shows up, even if all macros removed Joe M Excel Discussion (Misc queries) 1 December 20th 07 04:45 AM
Macros - copying macros from one computer to another TT Excel Discussion (Misc queries) 18 December 14th 06 03:24 AM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM


All times are GMT +1. The time now is 07:43 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"