Copying/paste specific Range

williadb

Board Regular
Joined
May 23, 2003
Messages
68
Hi

Im trying to copy all data from one worksheet and paste to another worksheet. However it may be possible that additional rows and columns are added to the spreadsheet over time so id like to always ensure that i am copying all of the info across.

I have a cell called "end of data" on 1 work sheet. Im using the find function then using Range(Selection, Selection.End(xlToLeft)).Select and Range(Selection, Cells(1)).Offset(1, x).Copy to select the data.

The issues is that i am actually capturing the top row however i require the data from row 3 to the end of data

can anyone please assist me
Thx
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Why not somethin like:

Code:
Sub copying()
    With ActiveSheet.UsedRange
        .Offset(2).Resize(.Rows.Count - 2).Copy destination:=...
    End With
End Sub
or:
Code:
Sub copying_2()
    With [A1].CurrentRegion
        .Offset(2).Resize(.Rows.Count - 2).Copy destination:=...
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,487
Members
452,917
Latest member
MrsMSalt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top