State and federal returns are handled by different government agencies. So, if you are getting refund from fed then you will receive check from fed separately. And if you owe tax to state the you will have to write check to state separately. I don't think you can make arrangement in such a way that you can pay state from federal refund amount without writing check separately.