Cutting data form one sheet and pasting into last row on another sheet

josephwatson123

New Member
Joined
Sep 13, 2017
Messages
1
Hi,

i am looking to use VBA to cut data from one sheet (A1 for example) then paste into another sheet but within the second sheet there is a list of data, i need the formula to find the last entry then paste below it. (obviously assigning this to a button)

i have managed to create something like this in the past for the next column, i tired to edit it to do rows but i seem to have broke it (see below).

Code:
Sheets("New Entry").Range("A6").Copy
    Sheets("DOI Smartcard").Cells("A", Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial (xlPasteValues)
    Application.CutCopyMode = False

could someone please advise on the above and see if they have a better option or can fix this...
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
With the Cells range object the row is first then the column.
Code:
Sheets("DOI Smartcard").Cells(Rows.Count,"A").End(xlUp).Offset(1, 0).PasteSpecial (xlPasteValues)
 
Upvote 0

Forum statistics

Threads
1,224,826
Messages
6,181,192
Members
453,021
Latest member
pingpong7117

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