I'm reasonably new to TP and VBA so please bear with me. [img]/images/graemlins/smile.gif[/img]
I have a tree view window, which, when expanded I need to scroll down through to find a specific string. I have tried clicking the arrow button to scroll down 3 lines then checking for the string etc.. which works fine if the string is present. However, the string may not be present and so it becomes an infinate loop. How can I scroll through the list and either stopping when the string is discovered or stopping when the scroll bar reaches the bottom?
I have looked to see if I can find a command to return the length of the scroll bar, but there seems to be none (Unless I'm looking in the wrong place??).