Many thanks for your patience, below is what i have done and although it is working ive tested it on a Pc and it hasnt worked. Is there a way I can write to a text file with results ? Or have you guys got an idea whats going wrong ? It was coming up with some error parameters but after i altered it, it seems to run through fine below is what i am using :

$nul=open(1,"coolice69.txt")
$name=readline(1)
while @error=0
$nul=writevalue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Excel.Chart.5","editflags","00 00 01 00","REG_SZ")
$name=readline(1)
loop
$nul=close(1)

If any one has any suggestions i would be most grateful, thanks

AzzerShaw
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields