+ Reply to Thread
Results 1 to 2 of 2

looping code not working

  1. #1
    Forum Contributor
    Join Date
    05-06-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    361

    looping code not working

    Hi, i have this set of code in one of my command button. The last part of the code should check for any cell in column J that meets the criteria of having the value "CE" and change the value 3 rows up from "In-Progress" to "Completed". What it is doing now is just changing the first cell that meets the criteria and it stops there. how do i change it so that it will look at the entire column where data exist and do the necessary changing if criteria is met?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: looping code not working

    Why have you set blankresult to True, which stops your loop, and why do you only do a FindNext if the last value wasn't flagged as In-progress?

+ 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] Looping is not working
    By vibajajo64 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-16-2018, 08:13 AM
  2. If Else not working correctly while looping through input range
    By dougmcc1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2015, 08:43 PM
  3. looping through cells isn't working
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2015, 01:27 AM
  4. [SOLVED] Looping through all sheets not working
    By onbeillp111 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2014, 10:28 AM
  5. [SOLVED] On Error Goto statement not working when looping
    By som3on3_10 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2013, 12:58 PM
  6. [SOLVED] Trying to change verbose looping code into more efficient (and shorter) code please
    By dawatcher in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-03-2013, 07:43 AM
  7. Worksheet Looping not working for all the sheets
    By Blue_kul in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-02-2012, 11:09 AM

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