Mount the fan and light and switch to the switch box. Connect the black fan cable to the lower terminal of the switch and the live circuit cable to the upper terminal. Sprinkle the white cables and cover them. Remove the ground cables together and connect them to the green earth screw on the switch.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.