-
I'm wanting to build a function that has multiple conditions for both Do While/Until Loops
Sub Macro
Dim i as integer
C1: cell.value(1,3)
C2: cell.value(2,3)
C3: cell.value(3,3)
D1: cell.value(1,4)
D2: cell.value(2,4)
D3: cell.value(3,4)
Do While IF C1<C2 AND C2>C3
Do Until D1>D2 AND D2<D3
The Return statement will be "Dx - Cy"
"Dx" will be D3 (pertaining to the Do WHILE condition)
"Cy" will be C3 (pertaining to the Do Until condition).
What would be the best way to go about this? Still new to excel vba and its been fun to say the least.
Bookmarks