Phoenix_Turn
New Member
- Joined
- May 11, 2011
- Messages
- 37
The purpose of my code is to stop at a cell when the value of my cell equals to the value of my input from the textbook but here it turns into an infinite loop. Can someone make some modifications below to get it to run? thanks!
i = 1
strEx = txtInp.Text
Do Until rngRang.Value = strEx
rngEx.Offset(i, 0).Select
i = i + 1
Loop
rngrngEx.Select
i = 1
strEx = txtInp.Text
Do Until rngRang.Value = strEx
rngEx.Offset(i, 0).Select
i = i + 1
Loop
rngrngEx.Select