+ Reply to Thread
Results 1 to 6 of 6

Loop

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Loop

    hi, i need help with small macro.
    i would like to finding empty cells. i can find first, but i dont know hot to continue.

    here is my code:

    Sub DoUntilLoop()
    Dim Irowcounter As Long

    Irowcounter = 1

    Do Until IsEmpty(ActiveSheet.Cells(Irowcounter, 1))
    Irowcounter = Irowcounter + 1
    Loop
    MsgBox ActiveSheet.Cells(Irowcounter, 1).Address

    End Sub

    thx.

    i tried to put Next under MsgBox... but doesnt work.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Loop

    Hi.

    Which column cells do you want to refer?
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Loop

    Try this code:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-19-2012
    Location
    Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Loop

    i refer to A column

    e.g.:
    A B ...
    1 5
    2
    3 4
    4 8
    .
    .
    .
    and i want to find empty cell and than continue with findinx next empty cell, until checked everything in column A

  5. #5
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Loop

    Check this code:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-19-2012
    Location
    Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Loop

    thx, works.... now i have to understand what u type )

+ 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