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.
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.
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
----------------------------------------------------------------------------
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.