Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Need a copy macro

Once a week I have to copy the current data from one sheet to an other.
The data is located in COL A to I,inclusive
but the bottom row varies from week to week.
Please tell me how to write a macro to accom-lish this
Thanks
..


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Need a copy macro

To copy from Sheet1 to Sheet2:

Sub copyit()
Dim eRow As Long
With Sheets("Sheet1")
eRow = .Cells(Rows.Count, 1).End(xlUp).Row
.Range(.Cells(1, 1), .Cells(eRow, 9)).Copy _
Sheets("Sheet2").Range("A1")
End With
End Sub

Hope this helps
Rowan

"PCOR" wrote:

Once a week I have to copy the current data from one sheet to an other.
The data is located in COL A to I,inclusive
but the bottom row varies from week to week.
Please tell me how to write a macro to accom-lish this
Thanks
..



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Need a copy macro

Sub copyData()

lastrow = Cells(Rows.Count, "A").End(xlUp).Row
Sheets(1).Range(Cells(1, 1), Cells(lastrow, 9)).Copy_
Sheets(2).Cells(1, 1)

End Sub

hth
steve

On Tue, 30 Aug 2005 23:15:07 -0400, "PCOR"
wrote:

Once a week I have to copy the current data from one sheet to an other.
The data is located in COL A to I,inclusive
but the bottom row varies from week to week.
Please tell me how to write a macro to accom-lish this
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 Macro robin Setting up and Configuration of Excel 1 January 19th 10 06:54 PM
Macro-copy puiuluipui Excel Discussion (Misc queries) 0 September 17th 09 02:19 PM
Copy workbook, don't copy macro CongroGrey Excel Discussion (Misc queries) 1 June 13th 08 04:56 PM
how to count/sum by function/macro to get the number of record to do copy/paste in macro tango Excel Programming 1 October 15th 04 01:16 PM


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