i`ve never try this kind of stuf but, what about if you disable the a/d before to switch to external Vref and re-enable it after?