When the venue is changed in any criminal action if the defendant be in custody, an order shall be made for his removal to the proper county, and his delivery to the sheriff thereof before the next succeeding term of the court of the county to which the case is to be taken, and he shall be delivered by the sheriff as directed in the order.
Tex. Code Crim. Proc. § 31.06