Thursday, November 20, 2008

Visual Basic Microsoft Project Focus on First Task

Here's another useful trick. If you're doing a lot of vb work modifying and adding tasks to an msproject file sometimes the page will scroll to the bottom of the list. If you have a bunch of tasks it can be annoying to use the scroll bar to go back to the beginning. So here's what I did to give focus to the very first task:

Globals.[ProjectName].Application.SelectRow(Row:=1, RowRelative:=False)

No comments: