3 Cables in Switch Box and Can't Figure it out
I'm going to guess that the upper left wire is the fan/light, and the lower right cable is the outlet. If this is correct, then this is how you need to wire it up:



If the fan and light don't work, try reversing the red and black wires connected to the FAN and LIGHT terminals of the switch.

If that still doesn't work, you'll need to identify the cable bring power to the box. If it's not the cable in the upper right, then you'll need to investigate the wiring in the fan box or the outlet box to make any progress.