LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Copy Rows From Worksheet Into Another Worksheet Same Workbook

Can you help me modify the macro listed below so the range of cells is 90?
The rows go from 10 to 100.

Thanks so much.


"OssieMac" wrote:

Hi Joe,

The following copies everything from row 10 down. Hope my assumption is right.

You need a range to copy but the destination only needs to be the first cell.

Sub movesheet()

With Sheets("Sheet1")
Range(.Cells(10, "B"), Cells(.Rows.Count, "B")).Copy _
Destination:=Sheets("Test").Cells(3, "C")

Range(.Cells(10, "C"), Cells(.Rows.Count, "C")).Copy _
Destination:=Sheets("Test").Cells(3, "G")


Range(.Cells(10, "F"), Cells(.Rows.Count, "F")).Copy _
Destination:=Sheets("Test").Cells(3, "F")
End With

End Sub


Regards,

OssieMac


 
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 rows from one worksheet automatically, ignore rows that are b Kris Excel Worksheet Functions 2 October 10th 08 09:28 PM
Copy Values From Worksheet to another Worksheet same Workbook Joe K. Excel Programming 1 October 6th 07 08:45 PM
Find all rows of a color and copy those rows to a new worksheet hshayh0rn Excel Programming 3 May 26th 06 08:34 PM
Copy Values from WorkSheet back to Another Workbook Replacing Values in Worksheet bobwilson[_16_] Excel Programming 0 April 3rd 06 09:50 PM
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 07:55 AM


All times are GMT +1. The time now is 12:02 AM.

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"