+ Reply to Thread
Results 1 to 4 of 4

Help needed with loop and copy if cell not empty

  1. #1
    Registered User
    Join Date
    11-12-2009
    Location
    surrey
    MS-Off Ver
    Excel 2003
    Posts
    22

    Unhappy Help needed with loop and copy if cell not empty

    I would like to only copy data when the cell in Column i is not empty. I'm still learning and would welcome any pointers if there are any blantent errors in my code.

    Thank you in advance. John

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help needed with loop and copy if cell not empty

    Maybe this:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-12-2009
    Location
    surrey
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Help needed with loop and copy if cell not empty

    That works thank you! I have tried to speed up the code to no avail, do you have any ideas
    Please Login or Register  to view this content.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help needed with loop and copy if cell not empty

    At the top of the macro:
    Please Login or Register  to view this content.
    At the bottom:
    Please Login or Register  to view this content.

+ 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. Need to find empty filled cells in a column and copy to the empty cell below
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2014, 10:09 AM
  2. [SOLVED] How to copy into next empty row using "for each cell in range" loop
    By GIS2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2013, 02:30 PM
  3. [SOLVED] Loop to delete empty rows needed
    By Smally in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2013, 10:48 AM
  4. [SOLVED] Loop to copy rows from two worksheets until reaching empty row
    By Brukernavn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2013, 05:06 AM
  5. copy paste from row above loop until last non empty row
    By jmoe007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2011, 04:19 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