Laurent,
Being new to VBA in Project and talking about row numbers, it sounds
like you have worked with Excel a fair amount. In Project "row" numbers
are analogous to tasks. And except for dynamically consolidated master
files, the task number (represented by the ID) is the row number.
Depending on how the VBA code is written (i.e. background processing or
foreground processing), the "active" task/row can be referred to several
different ways. For example, lets say you want to get the name of task
number 5. Using "TskNam" as a variable to hold the name, the syntax is:
TskNam = ActiveProject.Tasks(5).Name
A more common approach is to use background processing. The following
code loops through all tasks in the project
For each t in ActiveProject.Tasks
If Not t is Nothing Then
TskNam = t.Name
(do other operations as needed)
End If
Next t
As you see, there are many ways to get something done using VBA. If you
record a macro you will generally get foreground processing which tends
to run slower and be a little "clunkier". As you learn more of the code
syntax and how to use Project objects, programming in full object code
becomes easier, code runs faster and is cleaner (at least in my opinion).
Hope this has helped.
John