+ Reply to Thread
Results 1 to 7 of 7

Help with do until loops.

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    Philippines
    MS-Off Ver
    Office 365
    Posts
    76

    Help with do until loops.

    Please Login or Register  to view this content.
    d = InputBox("Enter the" & " from " & "date (m/d/yyyy)", , Format(Now(), "m/d/yyyy")) - Start Date
    d2 = InputBox("Enter the" & " to " & "date (m/d/yyyy)", , Format(Now(), "m/d/yyyy")) - End date

    What I want to happen is it will run the loop until the cell is empty and after checking all the rows, it will start the loop again with a different value of d.

    example, first run... it will check all the rows. the value of d = 3/1/2013 after that, it will check all the rows again and the value of d will be 3/2/2013 and so on...

  2. #2
    Registered User
    Join Date
    03-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Help with do until loops.

    suggest using
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Help with do until loops.

    suggest using
    Please Login or Register  to view this content.
    Last edited by zalora; 03-28-2013 at 06:35 AM. Reason: re code

  4. #4
    Registered User
    Join Date
    12-08-2010
    Location
    Philippines
    MS-Off Ver
    Office 365
    Posts
    76

    Re: Help with do until loops.

    is it really wend?

  5. #5
    Registered User
    Join Date
    03-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Help with do until loops.

    of course in vb it is wend

  6. #6
    Registered User
    Join Date
    12-08-2010
    Location
    Philippines
    MS-Off Ver
    Office 365
    Posts
    76

    Re: Help with do until loops.

    I see. Thanks.

    =======================================
    d = 5
    d = 20

    a = 4
    Do Until IsEmpty(Worksheets("TDB").Cells(a, 8))

    Worksheets("TDB").Cells(a, 8).Value + d

    a = a+1
    loop
    =======================================
    let us say I have 100 rows. I need to check those 100 rows first before I change the value of d. How can I achieve this?

    so after 100 rows, d = 6
    after 100 rows, d = 7 and so on...

  7. #7
    Registered User
    Join Date
    03-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Help with do until loops.

    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)

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