+ Reply to Thread
Results 1 to 3 of 3

DO UNTIL.... beginner question

Hybrid View

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    31

    Question DO UNTIL.... beginner question

    Hello,
    I have a do until loop question. Currently I have...
    Sub RandLoop()
    Calculate
    Do Until Cells(4, "H") + Cells(5, "H") <= Cells(1, "G")
        Calculate
    Loop
    End Sub
    This works great! However I also want another thing being done at the same time. I want something like this on the Do Until line..
    Do Until Cells(4, "H") + Cells(5, "H") <= Cells(1, "G") && Cells(9, "H") + Cells(9, "H") <= Cells(1, "G")

    Thanks!
    Last edited by Richard Buttrey; 12-02-2012 at 06:46 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: DO UNTIL.... beginner question

    Hi,

    Replace your && with AND

    And don't forget that the forum requires code tags around code. I've added them for you this time.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-29-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: DO UNTIL.... beginner question

    thank you!

+ 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