Forum Discussion
paul_scroce
13 years agoFrequent Contributor
Perhaps you can use a loop and
If txtBoxDept.contentText = ExpectedName Then txtBoxDept.Keys("[Enter]")
but you would also need to know the total number of items in the list to work out how many times to press the Down key before exiting the function if the item is not found.
If txtBoxDept.contentText = ExpectedName Then txtBoxDept.Keys("[Enter]")
but you would also need to know the total number of items in the list to work out how many times to press the Down key before exiting the function if the item is not found.