Some kind of filter, yes, that is exactly why rows were not equal to ID's!
Normally the filter applied is visible (in the little filter window), or you
ccan read the name in Project menu, Filtered for...; if you note its name,
you can re-apply it after the macro.
To automate it start the macro with
and you end it with
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check: