Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50158

[SOLVED] DO UNTIL.... beginner question

$
0
0
Hello,
I have a do until loop question. Currently I have...
Code:

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!

Viewing all articles
Browse latest Browse all 50158

Trending Articles