+ Reply to Thread
Results 1 to 4 of 4

Copy rows into existing sheet based on the value of a cell.

  1. #1
    Registered User
    Join Date
    06-26-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Copy rows into existing sheet based on the value of a cell.

    I am having some trouble developing a macro that will allow me to only copy rows to a new sheet that do not have a $0 value so anything that isn't 0. This copys to an existing sheet.

    N AccountCcy Reg Type E BALANCE B BALANCE E (OVER) UNDER B
    acct2 CHF NR 13,215,454.00 13,215,454.00 0.00
    acct3 CHF NR 153,215.00 35,132,132.00 34,978,917.00
    acct1 CZK NR 153,215.00 35,132,132.00 34,978,917.00
    acct2 CZK NR 16,464,514.00 16,464,514.00 0.00
    acct3 CZK NR 13,215,454.00 13,215,454.00 0.00
    acct1 DKK NR 16,464,514.00 16,464,514.00 0.00
    acct2 DKK NR 153,215.00 35,132,132.00 34,978,917.00
    acct3 DKK NR 16,464,514.00 16,464,514.00 0.00
    acct1 EUR NR 13,215,454.00 13,215,454.00 0.00


    basically I would need only those with values in the E UNDER B column to be copied and pasted into an existing sheet called E Adjustments.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy rows into existing sheet based on the value of a cell.

    Have you attempted to use Data Filtering? Try capturing the code with the macro recorder then when you have that post back here since it will no doubt be possible to simplify it.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-26-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Copy rows into existing sheet based on the value of a cell.

    Quote Originally Posted by Richard Buttrey View Post
    Have you attempted to use Data Filtering? Try capturing the code with the macro recorder then when you have that post back here since it will no doubt be possible to simplify it.
    Please Login or Register  to view this content.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy rows into existing sheet based on the value of a cell.

    Hi,

    It could be simplified as follows:

    Please Login or Register  to view this content.
    Last edited by Richard Buttrey; 06-26-2012 at 05:48 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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