After the entry of an order admitting a will to probate and appointing a personal representative, or personal representatives, letters testamentary shall be granted to the persons therein appointed executors. If a part of the persons thus appointed refuse to act, or be disqualified, the letters shall be granted to the other persons appointed therein. If all such persons refuse to act, letters of administration with the will annexed shall be granted to the person to whom administration would have been granted if there had been no will.