+ Reply to Thread
Results 1 to 5 of 5

Loop column problem, leaving last cell empty

  1. #1
    Registered User
    Join Date
    04-30-2020
    Location
    Boston
    MS-Off Ver
    365
    Posts
    20

    Loop column problem, leaving last cell empty

    Hi,

    I created a code that loops through a Column that contains "Failed" and "Passed" in a workbook. If it encounters a Failed then it copies the information in Column A.

    As we can see below the first one has "a_" the code writes "apples" but it doesn't do the last one


    the code I have:

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by pedro53; 12-27-2020 at 05:12 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,068

    Re: Skipped Cell

    You need to move this line of code
    Please Login or Register  to view this content.
    to just before the
    Please Login or Register  to view this content.
    Line

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

    Re: Skipped Cell

    @pedro53

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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

  4. #4
    Registered User
    Join Date
    04-30-2020
    Location
    Boston
    MS-Off Ver
    365
    Posts
    20

    Re: Skipped Cell

    Thanks, that worked perfectly

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,068

    Re: Loop column problem, leaving last cell empty

    You're welcome & thanks for the feedback.

+ 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] Why does first row of table get skipped when populating
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-12-2016, 06:44 AM
  2. [SOLVED] When I call my macros one of them is skipped
    By Teblol in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 06-04-2016, 05:05 PM
  3. VBA code being skipped help please
    By martinez77 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-27-2014, 04:00 PM
  4. Reference Cell Skipped
    By stocastic in forum Excel General
    Replies: 4
    Last Post: 04-12-2013, 05:44 AM
  5. [SOLVED] Using mod row to display in every nth cell with some cells skipped
    By mick86 in forum Excel General
    Replies: 13
    Last Post: 07-08-2012, 10:32 AM
  6. Chunks of Macro being skipped when running
    By BehrBrew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2012, 01:01 PM
  7. Skipped fields in a merge
    By mbohnsack in forum Excel General
    Replies: 0
    Last Post: 08-19-2011, 01:08 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