LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default A COPY macro

I thank you VERY much.
Rowan's suggestion worked very well....but your worked even
better....because your APPENDS (I did not ask for that but it sure fit my
requirement)Many thanks

"Jim Thomlinson" wrote in message
...
opps... use this...

Sub CopyStuff()
Dim wksFrom As Worksheet
Dim wksTo As Worksheet
Dim rngFrom As Range
Dim rngTo As Range

Set wksFrom = Sheets("Sheet1")
Set wksTo = Sheets("Sheet2")
Set rngFrom = wksFrom.Range(wksFrom.Cells(Rows.Count, "A").End(xlUp), _
wksFrom.Range("I1"))
Set rngTo = wksTo.Cells(Rows.Count, "A").End(xlUp).offset(1,0)

rngFrom.Copy rngTo

End Sub

--
HTH...

Jim Thomlinson


"Jim Thomlinson" wrote:

This code copeis from sheet 1 and appends to sheet 2...

Sub CopyStuff()
Dim wksFrom As Worksheet
Dim wksTo As Worksheet
Dim rngFrom As Range
Dim rngTo As Range

Set wksFrom = Sheets("Sheet1")
Set wksTo = Sheets("Sheet2")
Set rngFrom = wksFrom.Range(wksFrom.Cells(Rows.Count, "A").End(xlUp),
_
wksFrom.Range("I1"))
Set rngTo = wksTo.Cells(Rows.Count, "A").End(xlUp)

rngFrom.Copy rngTo

End Sub
--
HTH...

Jim Thomlinson


"PCOR" wrote:

Hi
I have data in col a/b/c/d/e/f/g/h and I
I would like to have a macro that will copy this data: the catch: the
bottom
row varies from week to week. Some times it is row 25 and the following
week
it could be row 40.
I want to copy that data to an other sheet
Help would be appreciated.





 
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
Copy workbook, don't copy macro CongroGrey Excel Discussion (Misc queries) 1 June 13th 08 04:56 PM
macro to copy DTruong Excel Discussion (Misc queries) 0 August 4th 06 03:44 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 07:01 PM.

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

About Us

"It's about Microsoft Excel"