Could you try my version with the line
$=Execute('$$vP='+$sGV)
in the final loop.

with the line
$=Execute('$$vP='+$sGV)
i also had an unexpected problem in line 1 !!!
it's an issue with setoption( "NoVarsInStrings", xxx )

with your version, if i set $oCommand.Properties( "Cache Results" ).Value to 0, i have no result.
if i set the value to 1, i have some results !!!

any idea ?

I am testing on a "big" AD (more than 4000 users, 3000 computers and 2000 groups).
I will also test version with redim of temporary array and version without temporary array.
_________________________
Christophe