the code itself works..you just need to find a way to keep the text selected while changing the combo box

maybe store the selstart and sellength in a variable and right before you change the font, rehighlight the text?