+ Reply to Thread
Results 1 to 5 of 5

do while loop

  1. #1
    Forum Contributor
    Join Date
    10-31-2010
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    150

    do while loop

    I know i've got the below syntax wrong for the loop but can someone point me in the right direction, i know what i want to say but cant seem to put it right

    Please Login or Register  to view this content.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: do while loop

    Hi, bopsgtir,

    by using a Do Loop you may miss a row to be deleted:
    Please Login or Register  to view this content.
    I prefer to start at the bottom and work up to the top like this:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    10-31-2010
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    150

    Re: do while loop

    l
    Please Login or Register  to view this content.
    would that just count to the first blank cell? as there can be blank cells there just cant be 3 in a row.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: do while loop

    Hi, bopsgtir,

    the command would find the last visible filled cell in column "B" (filled with either a value or a formula), starting at the very end of the spreadsheet and working up (according to CTRL+Up command). There could be added a check to see if the last cell in that column is filled.

    Ciao,
    Holger

  5. #5
    Forum Contributor
    Join Date
    10-31-2010
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    150

    Re: do while loop

    Sorry yes i see now, i was thinking xldown, but like you said work for the bottom up, makes sense now thank you for your help.

+ 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