+ Reply to Thread
Results 1 to 6 of 6

Loop macro greater than zero & paste.

  1. #1
    Registered User
    Join Date
    07-26-2010
    Location
    Saint Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    9

    Loop macro greater than zero & paste.

    I am looking for a macro which will look in column "c" starting at c9 and if c9 > 0, then copy $d$3:$m$8 to cell d9. If it is true, copy & paste, if false, go six cells down and check if this cell is greater than zero and so on.
    Any help is greatly appreciated!

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Loop macro greater than zero & paste.

    Hi Randy

    You don't say how far down column C the macro has to run.
    Is it always the values from D3:M8 that are to be copied, or a different range as you go down the sheet?
    Can we assume that the second occurrence will be posted to D15, then D21 etc., or are the values to be posted to D10, D11 and so on?
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  3. #3
    Registered User
    Join Date
    07-26-2010
    Location
    Saint Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Loop macro greater than zero & paste.

    It will run down "c" maybe 4000 cells, this could fluctuate.
    Yes, it is always values D3:M8 that are copied and yes they will be posted to D15; D21; etc.

  4. #4
    Registered User
    Join Date
    07-26-2010
    Location
    Saint Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Loop macro greater than zero & paste.

    "bump, no response"

  5. #5
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Loop macro greater than zero & paste.

    Hi Randy

    Try
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-26-2010
    Location
    Saint Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Loop macro greater than zero & paste.

    Roger, works like a champ!!! Does exactly what I needed it to do. Thank You So Much!!! You guys are the best, don't know what I'd do with out you.

+ 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