Ranzenhofer takes oath of office