operez:

See the UDF Forum for helpful UDFs, e.g. ArrayenumKey and ArrayEnumValue
Code:

$values=arrayenumvalue('HKCU\Software\Microsoft\Office\8.0\Excel\microsoft excel')
for each $value in $values
next



Would it not be easier to just write the first three registry value with the three approved files, and delete all other values independent of what they contain?
_________________________
There are two types of vessels, submarines and targets.