+ Reply to Thread
Results 1 to 15 of 15

Last row copy and paste to different sheet

  1. #1
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    Last row copy and paste to different sheet

    Hello Everyone!

    i'm new to the forum and i'm excited to be here amongst so many savvy excel folks. with that said, I have a task that i'm hoping someone can help me with. i'm trying to run the below code to do THREE things:

    1. copy the entire last row of data from one sheet("HL_1")
    2. go to or select another sheet("HL_COMBINED") and paste the data on the last empty row. RIGHT NOW THE CODE DOESN'T WORK. IT WILL ONLY PASTE THE FIRST COLUMN ("B") INTO Sheet("HL_COMBINED")
    3. as you can see i'm using a button to do this, but I want to do something a little different and frankly i'm not certain it can be done. but I also know excel is very versatile. using Excel 2016, I input my data into the sheet("HL_1) through a "Data Entry Form" which is a Custom New Group I set up in the Data Ribbon. after I select "Close" on the "Data Entry Form" the data automatically populates to the last row. what i'd like to do hopefully is once I hit "Close" on the "Data Entry Form" I want the data to also go to the last row on sheet("HL_COMBINED"). Is this possible? I know it's a tall order, but any assistance is greatly appreciated.

    also see cross post: mr.excel.com/forum/excel-question/1065831-copy-paste-problem-4.html. I thought the issue was resolved from a cross post, but then another issue involving error codes came up after we close the post.

    Please Login or Register  to view this content.
    Last edited by RoroBear; 08-05-2018 at 02:36 PM. Reason: poor thread title

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: New guy_help with vba code

    Welcome to the forum! Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Changing your thread title is not optional, which means you must change it. Thanks!

    • Use concise, accurate thread titles.
    • Your post title should describe your problem, not your anticipated solution.
    • Use terms appropriate to a Google search - poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice tell us nothing.
    • Responding to a request to change your thread title by doing so is mandatory.

    To change a title go to your first post, click EDIT then Go Advanced and change your title.

    No help to be offered, please, until the OP complies with this request.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,299

    Re: Last row copy and paste to different sheet

    Hi RoroBear

    Welcome to the forum...Thank you for correcting the problems relating to our rules...
    This code will copy the last row from 1 sheet to next empty row of other sheet...
    Please Login or Register  to view this content.
    3. as you can see i'm using a button to do this, but I want to do something a little different and frankly i'm not certain it can be done.
    I am certain that most requirements can be solved...If you are wanting to populate both sheets at next empty rows with code then yes, however, I am not to sure what you mean when saying..."Data Entry Form"
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: Last row copy and paste to different sheet

    Rule 08: Cross-posting Without Telling Us

    Your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question. If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    If you have less than 10 posts, do not try to copy and paste the link. Instead, type the link out in your thread.

    No further help to be offered, please, until the OP has complied with this request.

  5. #5
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    Re: Last row copy and paste to different sheet

    Hi sintek,

    thank you for the assist and sorry about the rule mishap. as to the code you sent. unfortunately, it didn't work. perhaps I wasn't clear in my original post, it was rather lengthy and ambiguous sorrry. let start with one problem at a time:

    1. I have two sheets ("HL_1") and ("HL_COMBINED"). both sheets are identical, both are tables with headers that start in column B and go to column P
    2. I want to copy the entire last row of data from sheet one called ("HL_1")
    3. go to or select the second sheet called ("HL_COMBINED") and paste the data on the last empty row.

    hopefully this makes a little more sense. also, I thought the issue was resolved from a cross post, but then another issue involving error codes came up after we close the post. again, my apologies i'm unable to copy or type in the link as I don't have enough post yet.
    Last edited by RoroBear; 08-05-2018 at 12:58 PM. Reason: missing information

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: Last row copy and paste to different sheet

    Please address post #4. Until you do, there will be no further help. You should not ignore moderation requests.

  7. #7
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    Re: Last row copy and paste to different sheet

    it was not my intent to cross post, I thought the issue was resolved but then another issue involving error codes came up after we close the post.
    again, my apologies i'm unable to copy or type in the link, i'm getting a system error "You are not allowed to post any kinds of links, images or videos until you post a few times."

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,299

    Re: Last row copy and paste to different sheet

    Can only assist with ListObject code once you have complied to AliGW's request...

    Edit...
    also see cross post: mr.excel.com/forum/excel-question/1065831-copy-paste-problem-4.html
    Please Login or Register  to view this content.
    Last edited by sintek; 08-05-2018 at 02:43 PM.

  9. #9
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    Re: Last row copy and paste to different sheet

    understood. I updated the original post, but I left out the "https" it was the only way the system would let me input the link as i'm a new member and don't have enough post to copy links or images. thanks for your understanding.

  10. #10
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,299

    Re: Last row copy and paste to different sheet

    Yes I see...Post 8 should solve...

  11. #11
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    Re: Last row copy and paste to different sheet

    that worked beautifully. thank you again and sorry the confusion, next time I post i'll make sure to follow all protocols.

  12. #12
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,299

    Re: Last row copy and paste to different sheet

    Coolio...Glad I could help...Pls remember to mark thread as solved...Thanks for rep +

  13. #13
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    Re: Last row copy and paste to different sheet

    forgive my ignorance, but before I violate any more rules, how do I do that? lol.

  14. #14
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,299

    Re: Last row copy and paste to different sheet

    Click star left of post Add reputation...
    Top of thread...Thread Tools...Mark as solved...

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: Last row copy and paste to different sheet

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Represent (define?) a section of code with a variable (shorten long code lines)?
    By Gene@action in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2016, 03:59 PM
  2. [SOLVED] Need help with VBA code. Tons of code seperated in two, second part of code doesn't work.
    By FragaGeddon in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 11-30-2015, 11:46 AM
  3. [SOLVED] Pattern Building VBA Code - Working code, would like to use cleaner code
    By Benisato in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-10-2015, 03:05 PM
  4. [SOLVED] Excel VB code. Message pops up while code running asking question. Code must not wait.
    By Heinrich Venter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2014, 06:10 AM
  5. [SOLVED] VBA code for assigning a numeric code to text; then numeric code populates table
    By cteaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2014, 08:01 PM
  6. Replies: 2
    Last Post: 03-09-2013, 04:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1