+ Reply to Thread
Results 1 to 2 of 2

Loop is overwriting instead of moving down to next empty cell

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    1

    Loop is overwriting instead of moving down to next empty cell

    I cannot figure this out. I need some help.

    My code is working with respect to finding the right data, but it keeps overwriting itself on each loop through...I need it to copy/paste and then on the next loop, move down one cell...



    Please Login or Register  to view this content.
    please help.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Loop is overwriting instead of moving down to next empty cell

    You never increment NextRowB, NextRowF and NextRowC in the loop, so you are always going to be pasting to the same row.

    Either add this just before the Next statements or move the code that finds the next empty row inside the loop.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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. Copy/Paste to Next Empty Row Overwriting Previous Row When Column A Is Empty
    By grantfitz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2013, 04:34 PM
  2. [SOLVED] For Each Loop Moving Down One Cell
    By blackrock41 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2013, 03:43 AM
  3. Why did an inner loop variable start overwriting the outer loop range suddenly?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2012, 03:24 PM
  4. Moving to first empty cell on page
    By steeley7 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-22-2009, 06:45 PM
  5. [SOLVED] Text Overwriting next empty cell
    By Is this a stupid Question? in forum Excel General
    Replies: 2
    Last Post: 07-13-2006, 09:10 AM

Tags for this Thread

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