I think you are using userinterfaceonly incorrectly. Take a look at this.

http://www.cpearson.com/excel/Protection.aspx