How long after surgery may I have intercourse, wear tampons, go swimming?

It depends on your operation. 

D & C, hysteroscopy, laser laparoscopy – 2 weeks

Laser to cervix, LLETZ procedures – 2 weeks

Major surgery such as hysterectomy – 4 to 6 weeks