excel - Paste without hitting enter -


i'm trying paste data (the .entirerow.select) new sheet ("win") without having hit enter when choosing paste data. want data pasted starting in column a, row 1 below last row entered data (lastrow defined earlier in code). advice? thanks.

    if archive = "win"         .entirerow.select          application.cutcopymode = false          selection.cut             sheets("win").select             range("a" & lastrow + 1).select          activesheet.paste 

i cleaned code little:

if archive = "win"     entirerow.cut         sheets("win").range("a" & lastrow + 1).paste 

where running issues?


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -