Can someone just summarise when you would use this?? and give an example please. I understand If/Then/EsleIf and Case but struggling to with this
Regards
Alan
count = 0
for x = 1 to 10
count = count + 1
next x
Do While/Until {Condition}
'stuff to do in the loop
Loop
Do
'stuff to do in the loop
Loop While/Until {Condition}
fPath = wbMaster.Path
fName = dir(fPath & "\" & "*.xls")
Do While Len(fName) > 0
Workbooks.Open(fPath & "\" & fName)
Loop
With Range("B9:B400")
Set rng = .Find("", LookIn:=xlValues, LookAt:=xlWhole)
If Not rng Is Nothing Then
Do
rng.EntireRow.Hidden = True
Set rng = .FindNext(rng)
Loop While Not rng Is Nothing
End If
End With