Which pronoun is correct in the following sentence?
No one but her/she ever made a perfect score on the test
The answer according to the book is "her", but it is getting on my nerves. I tried solving it by making a different statement as follows:
She made a perfect score on the test
Why does using "No one but" change it to accusative case?