+ Reply to Thread
Results 1 to 5 of 5

Copy entire row based on 2 criteria and paste on the next blank row on a specific sheet

  1. #1
    Registered User
    Join Date
    01-11-2014
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2010
    Posts
    46

    Copy entire row based on 2 criteria and paste on the next blank row on a specific sheet

    Hi,

    I have searched the below codes on this forum and modified a little. It should have been perfect code for my purpose except that if there are no more data from row 3 in the source sheet ["BANK ENTRIES"] and the user (by mistake) clicks again the button to run the macro, the second header [row 2] will be moved to the other sheet ["Bank-Cleared"] and if the user clicks the button further, the first header [row 1] will be moved as well. The bad thing is that, my button is in row 1 which will be deleted and pasted to the other sheet ["Bank-Cleared"]. Kindly help.


    Please Login or Register  to view this content.
    Last edited by alansidman; 01-25-2014 at 04:14 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Copy entire row based on 2 criteria and paste on the next blank row on a specific shee

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

    Posting code between
    Please Login or Register  to view this content.
    tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    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



    (I have added them for you today. Please read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy entire row based on 2 criteria and paste on the next blank row on a specific shee

    Try adding an If statement to account for this:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-11-2014
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Copy entire row based on 2 criteria and paste on the next blank row on a specific shee

    Hi Alan, thanks and sorry for that. I was searching how to do it actually that is why i just put italics and change font. I should have read the rules thoroughly. I will next time.

  5. #5
    Registered User
    Join Date
    01-11-2014
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Copy entire row based on 2 criteria and paste on the next blank row on a specific shee

    Thanks Stnkynts! I tested and it is working well.

+ 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] Copy & Paste to another sheet based on criteria on next blank row
    By Webbers in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-06-2013, 04:09 PM
  2. [SOLVED] copy paste entire row into a specific cell in sheet 2
    By melody10 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-29-2013, 04:40 PM
  3. Replies: 0
    Last Post: 07-16-2013, 05:22 AM
  4. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  5. [SOLVED] Copy entire row to another sheet based on a criteria
    By Brig Siton in forum Excel General
    Replies: 3
    Last Post: 08-07-2006, 04:05 PM

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