Shut off the electricity to the room you are working in at the fuse box.
Unscrew the decorative pulls from the chains on the pull switches.
Remove the globes from the fan by turning the nuts holding them in place. Also remove the light bulbs.
Remove the screws from the ceiling fan housing. Let the housing hang.
Unscrew the nut holding the switch to the cover plate.
Remove the wire nut holding the wire of the switch to the wires going to the light. Cut the other wire leading up to the ceiling fan. Strip that wire back 1/2 inch. Remove the other wire; if you have a three-way switch, remove the wire nut from the other wire and remove the switch.
Wrap the wire from the switch to the light wires. You can use either wire from the switch. Attach the other wire to the wire leading into the ceiling. Twist the wire nuts around the new connections clockwise.
Secure the switch to the housing of the fan with the nut. Reassemble the fan and turn on the power.