Strange, if you use a style sheet as attached, it all works fine. I can't tell you why it fails using style.
The more I use style sheets the more I like them, it's well worth it if you don't already.
I've changed your code slightly to save looking up the selected value, as it's passed to the sub.