For example you can put 10 in A1 and then put "=sum=0;for(i=0;i<A1;i++)sum+=i" in A2 to get the sum from 0 to 10. I really like this.
What sort of vulnerabilities does this expose, besides letting the user shoot their feet repeatedly? Cross site scripting?