From the Code of Canon Law:

Can. 396 §1. A bishop is obliged to visit the diocese annually either in whole or in part, so that he visits the entire diocese at least every Five years either personally or, if he has been legitimately impeded, through the coadjutor bishop, an auxiliary, vicar general, episcopal vicar, or another presbyter.