Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXCEL: copying 1 worksheet to another

Status
Not open for further replies.

mattborn

Technical User
Jul 9, 2002
19
US
What I want to do is make a duplicate copy of the data in one worksheet into another worksheet minus the first 3 rows, but I have no idea how to do it.

THanks
 
I would just copy the worksheet, and delete the first 3 rows.

If you need them to be linked (changing worksheet 1 changes worksheet 2 also), then select the cells you want. Copy.

Go to worksheet 2, click on the top-left most cell where you want the data to begin, and hit Edit-Paste special-Paste link.

Anne Troy
 
Couple of ways. You can do it the manual way of select all of the rows other than the first row (which can be rather tedious), or you can set VBA to do this:

Sub CopyWorksheet(ByRef FromWS as Worksheet, ToWS as Worksheet)
FromWS.Range("4:65536").Copy ToWS.Range("A4")
End Sub

Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
When the going gets tough, the tough gets going.
 
Dreamboat, I thought about that way too, but if the user has something like a header within the first 3 rows on the copy to worksheet, that method could not work.

Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
When the going gets tough, the tough gets going.
 
Also, Why not just make a copy of the actual file and delete the first three rows :)



Blue [dragon]

If I wasn't Blue, I would just be a Dragon...
 
Well the reason I am doing this is that I use Crystal Reports to generate a report off of this data. The worksheet I currently use has macros, autofilters, and data validation. I can't get Crystal Reports to work of the original data, I have to copy the data I want to another file to be able to use it. I just wanted it to be kind of automatic, because the data changes regularly.
 
Not really automatic, but only a 2 second job. Right click the tab, choose 'Move or Copy', choose new workbook and delete the first 3 rows.

Regards
Ken.................

----------------------------------------------------------------------------
Attitude - A little thing that makes a BIG difference
----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top